[antlr-interest] Good "dot" Invocation Options for Visualizing ASTs?
Randall R Schulz
rschulz at sonic.net
Mon Oct 6 09:05:53 PDT 2008
On Monday 06 October 2008 08:54, Jim Idle wrote:
> ...
>
> These are not the defaults, they are the settings I use for this:
>
> http://www.temporal-wave.com/comp/twcsc.php
I doesn't seem to work if I just press the "Parse to AST" button with
the existing C# code. No AST graph is ever drawn.
> > 2) Those are not the options I see when using DOTTreeGenerator in
> > 3.1.1.
>
> These are overrides, that you pass in here:
>
> StringTemplate st = gen.toDOT(t, new CommonTreeAdaptor(), _treeST,
> _edgeST);
>
> > ...
>
> So, pass in a string template that doesn't have those things in it
> and just has "digraph {\n\n" + $edges + "\n{");
That's good to know.
> > ...
>
> Well, if they are not great, why not use the ones I just gave you,
> which are pretty good? The code I sent is the entire invocation and a
> decent template.
Thanks. I'll give those a try.
> Jim
Randall Schulz
More information about the antlr-interest
mailing list