Aaagh I've been trying to make a grammar in Lua for a *week*. I hate LPeg.

And my grammar is ridiculously simple 😭

I mean, give me back lex and yacc, let me write 3 regexps and I'm done with it. Here, not only do I have to bake lexing into the grammar, but also support for proper error messages… that, plus exotic syntax and a messed-up, untyped way of creating the AST (called “captures”) and it's a nightmare.


@otini Sounds miserable. They're seems to be a bit of a backlash against regexps and lexers at the moment. Which is insane; that's the one good use of regular expressions!

Sign in to participate in the conversation
Functional Café is an instance for people interested in functional programming and languages.