Re:Writing An Interpreter In Go (2016)
by chrisseaton on Monday November 25, 2019 @09:55AM
(#21628578)
> Seems like the way to go these days?
No I think people use parser generators less these days.
> Why write it yourselves if you can generate it from EBNF notation?
Can you write EBNF for it? Can you generate a parser from the EBNF? EBNF and most parser generators are designed for context-free languages. Most languages are context-sensitive. You can see where things start to go wrong...
No I think people use parser generators less these days.
> Why write it yourselves if you can generate it from EBNF notation?
Can you write EBNF for it? Can you generate a parser from the EBNF? EBNF and most parser generators are designed for context-free languages. Most languages are context-sensitive. You can see where things start to go wrong...