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.

Follow

*And* LPeg doesn't handle UTF-8? Like… pff.

Sign in to participate in the conversation
Functional Café

functional.cafe is an instance for people interested in functional programming and languages.