[antlr-interest] LPG WAS Retaining comments

Andy Tripp antlr at jazillian.com
Tue Mar 18 15:13:57 PDT 2008


Olivier Lefevre wrote:
> Another possible answer is that a parse tree is what you get by default, 

Not with ANTLR, you don't. There's one call to the parser to get the
AST, and a whole different approach to getting the parse tree.
That's what that other long "postmortem" thread was about: the suggestion that maybe
ANTLR could just return the parse tree when no instructions for building
an AST are provided.

Judging from the discussion, it looks like that's not going to happen.
So to see an ANTLR parse tree, follow these instructions:
http://www.antlr.org/wiki/pages/viewpage.action?pageId=1760

Andy



More information about the antlr-interest mailing list