[antlr-interest] nondeterminism problem
stephane brossier
dognogod at yahoo.com
Tue Oct 15 23:06:47 PDT 2002
Hey,
I don't know much about antlr, but did you try to
increase the value of k (lookahead) to 6?
This is maybe a dirty solution but i don't know
any better...
Hope this helps.
S.
--- Jack Hong <jack_xu_hong at yahoo.ca> wrote:
> 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
>
>
__________________________________________________
Do you Yahoo!?
Faith Hill - Exclusive Performances, Videos & More
http://faith.yahoo.com
Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
More information about the antlr-interest
mailing list