[antlr-interest] About AST construction and rewriting for tree parsers?

Michael Bedward michael.bedward at gmail.com
Wed Jul 29 00:45:54 PDT 2009


Hi,

There are some fairly simple examples of tree rewriting in my Jiffle
language grammars:

http://code.google.com/p/jai-tools/source/browse/#svn/trunk/jiffle/src/main/antlr3/jaitools/jiffle/parser

Jiffle.g is the initial lexer / parser grammar.
The various MorphX.g files plus VarClassifier.g and MakeRuntime.g all
do bits of AST rewriting.

Hope this helps,

Michael


More information about the antlr-interest mailing list