[antlr-interest] buildAST option
Johannes Luber
jaluber at gmx.de
Wed Nov 7 02:20:06 PST 2007
atif azad wrote:
> Hello eevrybody
>
> The buildAST option is not working in my version 3 grammer. Can any body
> please tell me what option should I use instead of this in v3 antlr so
> that I can use commands like
> parser.getAST
> etc
> in my main function.
>
> Right now when I use this command It gives me error tha method getAST is
> not defined in your parser
Use "options {output=AST;}" in your parser and the getTree() method to
retrieve the tree.
Johannes
More information about the antlr-interest
mailing list