[antlr-interest] odd nondeterminism
Terence Parr
parrt at cs.usfca.edu
Tue Jan 4 12:05:52 PST 2005
On Jan 3, 2005, at 9:11 PM, Paul J. Lucas wrote:
> Given:
>
> expr : exprSingle (sortByClause)? ;
>
> sortByClause : SORT BY '(' sortSpec ')' ;
>
> I get:
>
> warning:nondeterminism between alts 1 and 2 of block
> upon k==1:SORT
>
> but I don't understand why. SORT appears nowhere else in the
> grammar.
Then expr must be in a loop somewhere without another terminal I'd say.
Ter
--
CS Professor & Grad Director, University of San Francisco
Creator, ANTLR Parser Generator, http://www.antlr.org
Cofounder, http://www.jguru.com
Cofounder, http://www.knowspam.net enjoy email again!
More information about the antlr-interest
mailing list