3 ms·
Some languages have built-in support for writing grammars (parsers, lexers). In many cases, it encourages engineers to write re-usable pieces of code instead o
by amenghra 9y ago
Some languages have built-in support for writing grammars (parsers, lexers).
In many cases, it encourages engineers to write re-usable pieces of code instead of one-off and hard to read regular expressions.
Too bad that's not the case in Go. Given that, I would pick a parsec library over a yacc/lex setup.
Parsecs are much easier to reason about.