[antlr-interest] lexer nondeterministic warning
Xue Yong Zhi
zhixueyong at hotmail.com
Thu Mar 8 07:22:41 PST 2007
> as reference (another discusson). Well, but the case here is that I
> got a 'lexical nondeterminism warnig' on the WORD rule when dealing
> with SINGLE and COMPOUND word. Like in 'context' and
> 'context-sensitivity'.
You need left factoring the rules. Google 'left factoring antlr' may
help you get some idea.
--
Xue Yong Zhi
XRuby (Ruby to Java bytecode compiler):
http://xruby.blogspot.com
More information about the antlr-interest
mailing list