[antlr-interest] non-determinism warning
tarunkhanna at gmail.com
Tue Jul 5 14:47:05 PDT 2005
I stumbled across this problem once more, so here I am looking for some
standard solution to such a problem.
Consider the following production ->
F: LP exp RP | (DOT IDENT)* (DOT TAB)?
There is non-determinism because the parser doesn't know, when to stop
matching the first DOT and start looking for the second DOT.
Syntactic or semantic predicates can not be used as, there are no
alternates. I don't want to use a look ahead of more than 1.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the antlr-interest