[antlr-interest] nondeterminism troubles

Terence Parr parrt at jguru.com
Wed Feb 13 23:21:42 PST 2002


On Wednesday, February 13, 2002, at 07:32  PM, heronsteel wrote:

>
> Is there any good reason why rules of the form:
>
> x = y | z
> y = (a)? b (c|d)? ...
> z = (a)? e (c|d)? ...
>
> should give me parser nondeterminism warnings? Or is it somewhere else
> in my rules? I think I am using plenty of lookahead (3)

hi there...please see the faq at jGuru concerning linear approximate 
lookahead.  I think that is the problem you face.

Ter
--
Chief Scientist & Co-founder, http://www.jguru.com
Creator, ANTLR Parser Generator: http://www.antlr.org


 

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



More information about the antlr-interest mailing list