1. Jan Vrany
  2. stx:goodies/petitparser

Overview

HTTPS SSH

PetitParser

PetitParser and PetitCompiler for Smalltalk/X

PetitParser

Grammars for programming languages are traditionally specified statically. They are hard to compose and reuse due to ambiguities that inevitably arise. 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.

For more details on PetitParser itself refer to PetitParser homepage

PetitCompiler

PetitCompiler compiles regular PetitParser grammars into an equivalent top-down parser implemented in Smalltalk. The compiled parser is significantly faster than PetitParser based one.

Documentation

For more information on how to use PetitCompiler refer to wiki

Installation

See installation notes on wiki

License

The MIT License, see LICENSE.