[antlr-interest] bug: invalid "Syntactic predicate superfluous" warning
thrutchy
eric_mahurin at yahoo.com
Fri Jul 16 15:18:43 PDT 2004
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
<*> 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