3 ms·
There's a lot of focus on parsing and AST definition in the language space. It's true that both of those are a bit tedious to write, but in reality they repres
by the_duke 4y ago
There's a lot of focus on parsing and AST definition in the language space.
It's true that both of those are a bit tedious to write, but in reality they represent a tiny amount of the work that goes into writing a language.
It's nice for experimentation, but you will soon need to customise your AST, add interning, have a permissive parser with error recovery (which always depends on language semantics) , propagate errors through your AST, ...
Most people who try to implement a language never get beyond the parse code to AST stage, so this would be nice for students and beginners.
But I don't think it's impactful beyond that.
- jzimmerman64 4y agoMany of these claims are subjective, but I will at least point out one fact: langcc is general enough to compile its own frontend - and not just for experimentation.