[antlr-interest] More DOT Questions

Terence Parr parrt at cs.usfca.edu
Fri Jun 29 15:07:37 PDT 2007


On Jun 29, 2007, at 3:04 PM, Randall R Schulz wrote:

> On Friday 29 June 2007 14:50, Terence Parr wrote:
>> On Jun 29, 2007, at 2:43 PM, Randall R Schulz wrote:
>>> ...
>>>
>>> What I want to know is what dot configuration and other processing
>>> or transformation ANTLRWorks clearly does behind the scenes to get
>>> the results it does.
>>
>> I'm pretty sure it calls ANTLR's DOTGenerator.  Just check the source
>> I'd say.
>
> Clearly that's not so, since when I take the output of DOTGenerator  
> and
> pass it to dot, the results are very different than those produced
> within ANTLRWorks itself.

For DFA?  Just the squiggling lines.  All other viz stuff is done  
directly by Jean in AW.

> And as I wrote earlier, when I capture ANTLRWorks invocations of  
> dot and
> log the arguments its using, the only invocations I see look like  
> this:
>
>> 4 arguments:
>>         "-Tdot"
>>         "-o"
>>         "/tmp/GrammarDOTTab50533.out"
>>         "/tmp/GrammarDOTTab50532.in"
>
> This means that ANTLRWorks appears to only be using dot to transform
> one .dot file to another (-Tdot means produce DOT-format output).

If I remember correctly, it's converting my DOT to DOT it can parse  
to get the splines out and display in Swing.

Ter


More information about the antlr-interest mailing list