[antlr-interest] tree grammar and output=AST
John Ridgway
john.ridgway at trincoll.edu
Thu Jul 12 08:59:46 PDT 2007
Friends -
I would like to do an AST -> AST transformation using tree grammars
in ANTLR 3. Unfortunately it seems that "output=AST" and "tree
grammar" are incompatible. Is this a fundamental limitation and I'm
just not understanding it, or could it be fixed easily?
The problems seem to be twofold:
1) There's a call to adaptor.create(...) which expects a Token and is
being passed a CommonTree.
2) There's a use of retval.stop (or something like that).
Peace
- John
More information about the antlr-interest
mailing list