[antlr-interest] Is ANTLR Hallucinating?

Shmuel Siegel ssiegel at finjan.com
Tue Jun 26 07:10:32 PDT 2007


After running "generate code" there should be some rules in the outline pane which are colored red. Those rules will show multiple paths.

-----Original Message-----
From: antlr-interest-bounces at antlr.org [mailto:antlr-interest-bounces at antlr.org] On Behalf Of Wincent Colaiuta
Sent: Tuesday, June 26, 2007 5:03 PM
To: Randall R Schulz
Cc: antlr-interest at antlr.org
Subject: Re: [antlr-interest] Is ANTLR Hallucinating?

El 26/6/2007, a las 15:59, Randall R Schulz escribió:

>> 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.

No specific action should be required on your part. If multiple rules  
need to be shown in order to display the ambiguous paths then  
ANTLRWorks should display them automatically whenever the rule with  
the ambiguity (highlighted red in the list of rules) is selected.

Cheers,
Wincent




More information about the antlr-interest mailing list