by the_duke · 4y ago · 0 comments
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.