[antlr-interest] Why is this nondeterministic?

Sinan sinan.karasu at boeing.com
Wed May 29 09:17:32 PDT 2002


danfuzz wrote:
> 
>
[...]

> 
> REGULAR:
>     (REGULAR_BIT)+;
> 


Try

REGULAR:
     REGULAR_BIT ((REGULAR_BIT)=>REGULAR_BIT)*;
 
Or what I like, 

REGULAR:
     REGULAR_BIT ((REGULAR_BIT)=>REGULAR)?;

Sinan

 

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



More information about the antlr-interest mailing list