[antlr-interest] again nondeterminism problem

vincedupuis vincedupuis at yahoo.ca
Mon Dec 15 08:22:47 PST 2003


I understand the problem of nondeterminism.
But I don't know how to solve it.
I have the following rules in my parser:

IDENT
 : ('a'..'z' | 'A'..'Z' | '_') ('a'..'z' | 'A'..'Z' | '_' | '0'..'9')
*
 ;

MSG_DIR
 : '[' ("in" | "out") ']'
 ;

MSG_TYPE
 : '[' ("asyn" | "sync") ']'
 ;

of course I got the following warning:

warning:lexical nondeterminism between rules MSG_DIR and MSG_TYPE 
upon k==1:'['

Note: I want to be able to use the words (in, out, async, sync) as 
an IDENT also.




 

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




More information about the antlr-interest mailing list