Welcome to PetitParser
PetitParser allows you to create efficient parsers in your favorite programming language easily:
PetitParser combines ideas from scannnerless parsing, parser combinators, parsing expression grammars (PEG) and packrat parsers to model grammars and parsers as objects that can be reconfigured dynamically.
To see PetitParser in action, check out these web-based examples using PetitParser for Dart:
- Lisp Interpreter
- Prolog Interpreter
- Expression Evaluator
- Expression Plotter
- URI Parser
- XML/XPath Parser
There are some other more experimental examples available:
- JSON Parser (JavaScript version is slow)
- Smalltak Parser (prints the AST)