[antlr-interest] To print the AST as seperate lines and not in a list (LISP notation)

Terence Parr parrt at cs.usfca.edu
Fri Apr 6 12:59:39 PDT 2007


Hi, DOT/graphviz works great.  See  
org.antlr.runtime.tree.DOTTreeGenerator:

DOTTreeGenerator gen = new DOTTreeGenerator();
StringTemplate st = gen.toDOT(t);
System.out.println(st);

Ter



More information about the antlr-interest mailing list