[antlr-interest] Re: nondeterminism issue

Xue Yong Zhi zhixueyong at hotmail.com
Thu Jul 6 09:35:52 PDT 2006


It is 'linear approximate lookahead' issue, which confuses lots of new 
users of ANTLR. In your case just shutdown the warning since it is harmless:

('\n'|'\r'(options{greedy=true;}:'\n')?)

> 
> WS        :        (   ' '
>                     |        '\t'
>                     |        ('\n'|'\r'('\n')?) {newline();}
>                   )+
>                 { $setType(Token.SKIP); }
>    ;


-- 
Xue Yong Zhi
http://seclib.blogspot.com



More information about the antlr-interest mailing list