Greetings! On Mon, 2010-02-08 at 14:58 -0800, tahiti wrote: > Please, repply on the simple question: how access to generated ast? The > documantation for 3.0 a thery uggly and don't contains necessary > information. I know how to do it in the version 2.0 (there are method > getAST() in Parser class), but this method removed in version 3.0!
If you look closely at the source code generated by the Tool for your parser --- and it is one of the strengths of ANTLR that you can actually read and debug the generated code --- you will see that each Parser in your grammar has a corresponding method in the generated source code. And that method has a return type of a structure one of whose fields is `tree`, the AST generated by that rule. Hope this helps... -jbb List: http://www.antlr.org/mailman/listinfo/antlr-interest Unsubscribe: http://www.antlr.org/mailman/options/antlr-interest/your-email-address -- You received this message because you are subscribed to the Google Groups "il-antlr-interest" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/il-antlr-interest?hl=en.
