[antlr-interest] Graphical AST

Mandy Neumann mandy at think-a-lot.de
Tue Nov 20 10:37:22 PST 2012


Hi,

I'm definitely no ANTLR crack, but this DOT thing works just fine for 
me. So maybe it's just the "no-antlrv2" part? I use antlr-3.4-complete.jar.

Am 20.11.2012 19:32, schrieb Juancarlo Añez:
> Hello Diego,
>
> I don't know about the specific problem you describe, but I do know that
> 3.4 is not the latest version of the 3.x series.  It is 3.4.1-snapshot, and
> you must get it from Github.
>
> Things that did not work for me with 3.4 work perfectly with 3.4.1-snapshot.
>
> Cheers,
>
>
> On Tue, Nov 20, 2012 at 1:18 PM, Diego Martínez <tabarem at gmail.com> wrote:
>
>> 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
>>
>> List: http://www.antlr.org/mailman/listinfo/antlr-interest
>> Unsubscribe:
>> http://www.antlr.org/mailman/options/antlr-interest/your-email-address
>>
>
>
>


More information about the antlr-interest mailing list