I think it might be the linear approximation of the lookahead. ANTLR thinks anything starting with '<' or '!' or '^', and being followed by '>' or '=' is the token NOT_EQ. Merging LE and NOT_EQ could help. Lubos. Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/