[antlr-interest] bug: invalid "Syntactic predicate superfluous" warning

Monty Zukowski monty at codetransform.com
Mon Jul 19 09:18:19 PDT 2004


This is a known bug.

Thanks,

Monty

On Jul 16, 2004, at 3:18 PM, thrutchy wrote:

> I used a syntactic predicate in a loop to solve an ambiguity:
>
> ( (a) => a )*
>
> but, it still gave the ambiguity warning plus a new one:
>
> warning:nondeterminism upon
>                ...
>     between alt 1 and exit branch of block
> warning:Syntactic predicate superfluous for single alternative
>
> The syntactic predicate did solve my problem and thus wasn't
> superfluous.  Effectively there are always effectively at least two
> alternatives in a loop because of the exit condition.
>
> ( (a) => a )+ also exhibits the same problem.  ( (a) => a )? gives no
> warning.
>
> Eric
>
>
>
>
>
> Yahoo! Groups Links
>
>
>
>
>
>
>
>

ANTLR & Java Consultant -- http://www.codetransform.com
ANSI C/GCC transformation toolkit -- 
http://www.codetransform.com/gcc.html
Embrace the Decay -- http://www.codetransform.com/EmbraceDecay.html



 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/antlr-interest/

<*> To unsubscribe from this group, send an email to:
    antlr-interest-unsubscribe at yahoogroups.com

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 



More information about the antlr-interest mailing list