[antlr-interest] How does AST construction work?

Paul Johnson gt54-antlr at cyconix.com
Wed May 18 07:53:41 PDT 2005


Bryan Ewbank wrote:
> 
> In C++, for example, you would use toStringTree() to generate the '2',
> but toStringList() will generate the list of elements.

Thanks everyone - toStringTree() returned the 2, and toStringList 
returned '2 + 4 * 5' as expected.

Paul



More information about the antlr-interest mailing list