andrewchambers / minipeg

A C peg parser generator (a fork of peg/leg)
https://ach.srht.site/minipeg
Other
22 stars 2 forks source link

I made/fixed and adapted some features found on the net #1

Open mingodad opened 2 years ago

mingodad commented 2 years ago

Hello Andrew ! I saw that you also tried packcc before and decided to use peg from Piumatra, I also after seem the overhead of packcc and testing lpeg and others decided to look a bit deeper on peg from Piumatra and I'm attaching here my latest working version (probably I'll create a github repo later).

Main changes:

See attached my changes with some working examples, I think that we can collaborate to improve it even more, ideally I want to have a parser like https://github.com/edubart/lpegrex/blob/main/parsers/c11.lua working in peg/leg to use as a base for other projects.

Cheers !

mypegleg.zip

andrewchambers commented 2 years ago

Will definitely take a look, thanks for letting me know.

mingodad commented 2 years ago

I just created a repository with all my changes here https://github.com/mingodad/peg