[antlr-interest] Nondeterminism problem again
Ersin Er
ersin_er at yahoo.com
Fri Sep 2 01:15:33 PDT 2005
Hi,
I get a nondeterminism warning for the following grammar:
Parser:
...
( (SP)* ss_base )?
( SEP (SP)* ss_specificExclusions )?
...
Lexer:
SP: ' ';
SEP: ',';
The warning message is:
156:27: warning:nondeterminism between alts 1 and 2 of block upon
...
:156:27: k==1:SP
:156:27: k==2:SP
:156:27: k==3:SP
...
and line 156 corresponds to line containing "( (SP)* ss_base )?".
When I remove line "157", it does not complain.
How does it cause a nondeterminism and how can I solve it?
Thanks in advance.
-- Ersin
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
More information about the antlr-interest
mailing list