[antlr-interest] Output graph of parse-tree - without ANTLRWorks?

Michael Bedward michael.bedward at gmail.com
Sun Feb 14 18:09:18 PST 2010


Hi Søren,

Would this do it ?

MyParser parser = ...
MyParser.prog_return r = parser.prog();  // assuming start rule is 'prog'
System.out.println( r.toStringTree() );

Michael


More information about the antlr-interest mailing list