[antlr-interest] Re: optional sub rules

Terence Parr parrt at jguru.com
Wed Feb 19 00:08:14 PST 2003


On Tuesday, February 18, 2003, at 10:32 PM, mklogic <mklogic at yahoo.com> 
wrote:

> Could you give me an example of a rule that has all sub rules
> optional and doesn't generate nondeterminism warning? Thanks

a : b A ;

b : (B)? (C)? (D)? ;

It is your use of the optional rule not the optional rule that is the 
problem :)

Terence
--
Co-founder, http://www.jguru.com
Creator, ANTLR Parser Generator: http://www.antlr.org
Lecturer in Comp. Sci., University of San Francisco


 

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



More information about the antlr-interest mailing list