3 ms·
> It's simple to lex and parse into an abstract syntax tree, There are some "cheats" for this, tools like ANTLR etc. that are good at generating parsers from a
by JohnMakin 2y ago
> It's simple to lex and parse into an abstract syntax tree,
There are some "cheats" for this, tools like ANTLR etc. that are good at generating parsers from a particular grammar. But of course, I think a beginner should try to do this on their own to get a feel for it.
Personally, for me, I do find writing parsers a little tedious and not the most fun part of making a language.