[antlr-interest] tree grammar and output=AST
parrt at cs.usfca.edu
Thu Jul 12 09:00:39 PDT 2007
Hi. It's a major item on my todo list.
On Jul 12, 2007, at 8:59 AM, John Ridgway wrote:
> 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).
> - John
More information about the antlr-interest