News for hackers. Stuff that matters.
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.
Re:Lessons from Writing a Compiler by westoncb on Thursday July 14, 2022 @09:16PM (#32103483)
> 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.

Re:Lessons from Writing a Compiler by eatonphil on Thursday July 14, 2022 @08:21PM (#32103009)
> What could be easier than writing a grammar in EBNF-ish notation?

Not learning a new language/build system/coding paradigm. :)

Re:Lessons from Writing a Compiler by kaba0 on Friday July 15, 2022 @04:31PM (#32112446)
ANTLR took me an afternoon, before I could use it for a simple language, including adding it to my build tool.