[antlr-interest] nondeterminism problem

Jack Hong jack_xu_hong at yahoo.ca
Fri Oct 11 17:51:01 PDT 2002


Hi all,
 
I get following warning messages when I run ANTLR:
 
warning: lexical nondeterminism between rules IDENT and BOOLEAN_LITERAL
upon
petal.g:0:  k==1:'F','T'
petal.g:0:  k==2:'A','R'
petal.g:0:  k==3:'L','U'
 
related token definitions in my grammar file:
 
BOOLEAN_LITERAL
    :    "TRUE"
    |    "FALSE"
    ;
 
IDENT
    :    ( 'a'..'z' | 'A'..'Z' | '_') ( 'a'..'z' | 'A'..'Z' | '_' |
'0'..'9')*
    ;
 
 
Any idea of how to fix these two nondeterministic tokens will be greatly
appreciated.
 
 
Thanks
Jack
 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.antlr.org/pipermail/antlr-interest/attachments/20021011/d160ee00/attachment.html


More information about the antlr-interest mailing list