by Cieplak · 9y ago · 0 comments
PEGTL - C++ Parsing Expression Grammar Template Library https://github.com/taocpp/PEGTL
Parboiled - Java & Scala PEG Library https://github.com/sirthias/parboiled
Nom - Rust parser combinator framework https://github.com/Geal/nom
Nearley - JavaScript parser toolkit https://github.com/Hardmath123/nearley
Neotoma - Erlang library and packrat parser-generator for PEGs https://github.com/seancribbs/neotoma
There's a great walk-through of using it here, including fuzzing your parsers to make sure they're solid. https://github.com/Geal/langsec-2017-hackathon-code
check out Chevrotain
I used that 2 times and found it pretty easy to use, once I had grasped all the operators (like .>>, .>>., <|>, etc.)
The library has a well-written tutorial that doesn't require previous knowledge about parser combinators.