I think that ANTLRWorks just calls dot for producing external files and that
by default OSX points to a weak version of Graphviz. In the preferences, you
can tell it the PATH to find the dot command. Change that and it should
work. I generally just use the syntax diagram though. If you check the
grammar, then the rule in error will light up in red. Select it, then select
the Syntax Diagram tag. It should show you how you end up with the
recursion.

Jim 

> -----Original Message-----
> From: [email protected] [mailto:antlr-interest-
> [email protected]] On Behalf Of Thomas Nilsson
> Sent: Thursday, August 19, 2010 10:14 AM
> To: [email protected]
> Subject: [antlr-interest] DFA display in ANTLRWorks not working on MacOSX
> 
> I am in the process of converting an old-ish LR-grammar to work with
ANTLRs
> LL-principles which is an interesting, but educational, journey.
> 
> I'm running on MacOSX and looking at my single remaining non-LL(*)
decision
> and was hoping to get some help from the DFA. unfortunatley displaying it
> does not work. When asked to produce the DFA, GraphViz pops up a
> message like "DOTxxxx.out could not be opened. GraphViz cannot open this
> kind of file." The message is then repeated for the ".in"-file.
> 
> ANTLRWorks preferences seems to be pointing in the right direction, as
> some other graphs are produced alright. (Although I do not know if
> ANTLRWorks uses GraphViz for that...)
> 
> I'm using latest ANTLRWorks (bundled, but has also tried the jar), and
have
> latest GraphViz (2.20.3 from 2008) for MacOSX.
> 
> Anyone have any clue, or hint on what to try?
> 
> Thomas Nilsson, CTO, Agile Mentor
> Responsive Development Technologies AB
> Web: http://www.responsive.se
> Email: [email protected]
> Phone: +46 70 561 75 41
> Blog: http://www.responsive.se/thomas
> 
> 
> List: http://www.antlr.org/mailman/listinfo/antlr-interest
> Unsubscribe: http://www.antlr.org/mailman/options/antlr-interest/your-
> email-address


List: http://www.antlr.org/mailman/listinfo/antlr-interest
Unsubscribe: 
http://www.antlr.org/mailman/options/antlr-interest/your-email-address

-- 
You received this message because you are subscribed to the Google Groups 
"il-antlr-interest" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/il-antlr-interest?hl=en.

Reply via email to