Pegasus - PEG grammar nimbleparsec generator

Pegasus - Nimbleparsec parser generator

This library converts a PEG parser library to nimbleparsec parsers. You can “hook” extra functions on to the combinators generated by the PEG language.

The PEG language is here:

Unlike yecc/leex, This PEG grammar is extremely easy to read and write, given ABNF descriptions given in most RFCs or other standards documents (e.g. ECMA). This also leverages the extremely effective compile-time nature of the NimbleParsec library.


Dear Sir,

Do you know of any languages that have a PEG grammar defined that one could look at for inspiration?

Most of these:

And this: