Hacker News new | ask | show | jobs
by crowdhailer 1 day ago
I have a few weird syntax I've worked on in the past so this is definitely possible. Currently only the textual representation and structural editor are in the repo. The most different I have done is a layout where the AST was presented like a file tree.

apply ├── int_negate └── 5

2 comments

What if you just put the file tree in the AST... and hashed it all?

https://gist.github.com/conartist6/7dd40697140965ee343de93b9...

I think you created a potential platform for experiments with different language syntax ideas. It is rarely that people want to change how integers are represented and such, mostly it is syntax. So this lets me and others try things out.