7 ms·
I work with PEGs every working day of my life. When I saw your example, it immediately gave me a chuckle, so thank you for that. Does that mean I'd spot the sa
by samatman 5y ago
I work with PEGs every working day of my life. When I saw your example, it immediately gave me a chuckle, so thank you for that.
Does that mean I'd spot the same gotcha deep in some grammar I was working on? No of course not, that would never happen. It's going to be some other mistake that makes me feel like an idiot after staring at the screen for several hours.
Parsers are designed around data, not conundrums. For structured languages, PEGs are a sharp and simple tool for slicing them up. But they're not great at solving the Liar's Paradox.