npeg icon indicating copy to clipboard operation
npeg copied to clipboard

Where is the npeg grammar ?

Open mingodad opened this issue 8 months ago • 2 comments

It's funny that a parser generator based on grammars do not show it's own grammar !

I'm collecting PEG grammars here https://mingodad.github.io/cpp-peglib (130+) and would like to add npeg grammar there if it's available.

mingodad avatar May 30 '25 06:05 mingodad

Ah, yes, some people collect stamps, some collect money, and of course someone collects PEG grammars, I'm not surprsied! But indeed, yes, it's funny how I never found the reason to define NPegs own grammar in NPeg - probably just a bit too meta for me.

If I were to deliver, what exactly is it you are looking for? Npeg grammar in NPeg, or NPeg grammar in default PEG notation?

zevv avatar May 30 '25 07:05 zevv

Thank you for reply ! Probably for you and your users NPeg in NPeg is the better solution, for others like me I'll work with that.

mingodad avatar May 30 '25 07:05 mingodad