[antlr-interest] Is ANTLR Hallucinating?

Randall R Schulz rschulz at sonic.net
Tue Jun 26 06:59:24 PDT 2007


On Tuesday 26 June 2007 06:48, Wincent Colaiuta wrote:
> El 26/6/2007, a las 14:50, Randall R Schulz escribió:
> >> If you look in ANTLRWorks you'll see that there are indeed two
> >> paths, the first marked in green, and the other red. In order to
> >> be non- ambiguous there must be only a single, deterministic path.
> >
> > I've done that, but there are no colors at all in the recognizer
> > graph.
> >
> > Again, I'm talking about the stand-alone ANTLRworks, not the IDEA
> > plug-in.
>
> Yeah, I'm using standalone ANTLRWorks as well. This screenshot
> (<http://antlr.org/works/screenshots/ambiguouspath.jpg>) shows what
> ambiguous path visualization looks like. Note the check boxes for the
> alternatives; in order to see both paths both check boxes must be
> checked.

I've never seen anything like that, even when I get those warnings from 
the ANTLR tool.

How do you get multiple productions at one time in the Syntax Diagram? I 
can't get that to happen—I never see the racetrack diagram for more 
than one production at a time.

I'm running on Linux, so the details of the display are different, but 
there is no "Alternatives:" check-box, jus the Show NFA check-box.

I'm running version 1.0.2 of ANTLRworks on Java 1.5.0.


> Cheers,
> Wincent


Randall Schulz


More information about the antlr-interest mailing list