Re:Lessons from Writing a Compiler
by zetalyrae on Thursday July 14, 2022 @08:19PM
(#32102995)
What could be easier than writing a grammar in EBNF-ish notation? This gives you the added benefit that the grammar is explicitly defined, and not implicit in the parser code.
[ Parent
| on HN ]
> This gives you the added benefit that the grammar is explicitly defined
Especially if you're still refining the syntax: it is so comparatively easy to modify a grammar vs parser.
> What could be easier than writing a grammar in EBNF-ish notation?
Not learning a new language/build system/coding paradigm. :)