NimbleParsec - a simple and fast parser combinator for Elixir

Sorry to resurrect an old thread.

Is nimble parsec an appropriate tool for the frontend of a compiler? Or is it really just better to roll one’s own Lexer and parser, I understand that the latter give you the most freedom (and the most foot guns.)

For example, how does one idiomatically eliminate left recursion using this library?

Thanks!
Joe

You could use NimbleParsec for the lexer/tokenizer bits. I would personally still use a grammar/parser.

1 Like