tinyap uses a different approach to parsing. As a black box, it accepts a pair { source text, grammar AST } as inputs and outputs the AST resulting from the parse of the source text by the given grammar. The default grammar is the "grammar grammar", so one can write a textual BNF-like ruleset, feed it to tinyap, and use the output as the grammar AST to parse source text. Tinyap also provides a simple framework to make AST walking simple, with interpreters/compilers in mind. A command line frontend is provided to access almost all tinyap features from a terminal, and tinyap is also easily embedded in any C/C++ project thanks to its simple API.
pcre libc STL
GPL v2
Damien Leroux (damien.leroux@gmail.com)
(damien.leroux@gmail.com)
You can download this project in either zip or tar formats.
You can also clone the project with Git by running:
$ git clone git://github.com/bl0b/tinyap