For C++, I’d like to suggest the PEGTL (https://github.com/ColinH/PEGTL/) which is a C++11 header-only PEG parser. I’m one of its authors, so I might be biased :)
You can use a different set of actions for each parsing run on a grammar (if you like) and you can add action almost everywhere. Actions also have access to your state and thus provide lookups, etc. If this is still not enough, you can even write custom rules for the parsing process itself and match things a “pure” PEG might not be able to express, see our contrib/raw_string example. > On 10.09.2015, at 01:15, Hayden Livingston <halivings...@gmail.com> wrote: > > I'm looking for a PEG Parser that has semantic actions for things that > require some sort of lookup. > > _______________________________________________ > PEG mailing list > PEG@lists.csail.mit.edu > https://lists.csail.mit.edu/mailman/listinfo/peg
signature.asc
Description: Message signed with OpenPGP using GPGMail
_______________________________________________ PEG mailing list PEG@lists.csail.mit.edu https://lists.csail.mit.edu/mailman/listinfo/peg