PetitParser

PetitParser combines ideas from scannerless parsing, parser combinators, parsing expression grammars and packrat parsers to model grammars and parsers as objects that can be reconfigured dynamically.

The version of PetitParser that is integrated into GT is PetitParser2 (AKA PP2) by Jan Kurš. It builds on and extends the original PetitParser framework by Lukas Renggli.

Resources

For a tutorial, see Parsing with PetitParser2, an adaptation to GT of the online tutorial of the same name.

For a case study using PetitParser to build an interpreter for a simple programming language, see PetitParser SPL case study.

Implementations of PetitParser for other langauges can be found on the Welcome to PetitParser website.