[antlr-interest] Graphical AST

Diego Martínez tabarem at gmail.com
Tue Nov 20 09:48:23 PST 2012


Hi,

I following step by step the next wiki entry:

http://www.antlr.org/wiki/display/ANTLR3/How do I display ASTs graphically

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

I use the antlr-3.4-complete-no-antlrv2.jar

When invoke gen.toDot(...) method it has StringTemplate class in your
return type (StringTemplate 3?), and the StringTemplate bundled within the
jar is 4 (name is ST instead of StringTemplate, etc).

I'm a novice in antlr, what is wrong with the dependencies?.. i need it to
generate a graphical view of my AST.

Thank you!! Diego Martínez


More information about the antlr-interest mailing list