3 ms·
I honestly feel like EBNF or similar is easier to comprehend. I get that for short things it's easier and more legible to use regex but once you get to complex
by BWStearns 4y ago
I honestly feel like EBNF or similar is easier to comprehend. I get that for short things it's easier and more legible to use regex but once you get to complex stuff the verbosity of spelling out a grammar is kind of a boon. And I say that as someone who has at various times been really comfortable writing some terrifying but accurate and useful regex.
- thwayunion 4y agoEBNF is awkward if you're describing a typical regular grammar. It's very natural for typical context-free grammars. The dirty secret of CS school is that your theory course is mostly about parsing until you get to turing machines (I joke, but only kind of)