PetitCompiler

Petit Compiler accepts PetitParser as input and produces a Smalltalk class with an equivalent top-down parser. Combinators of PetitParser are analyzed and the fastest parsing strategy is choosen for each of them. The compiled parser is significantly faster.

Performance

Smalltalk

We compare four different Smalltalk parsers. All of them create an identical AST:

PetitParser is an implementation of a Smalltalk parser in PetitParser.