Ning Ji wrote: > hi my old code has this line > > IDNET: ('a'..'z')* > > now i want to add a keyword "stale", > STALE: "stale" > Please read the Reference Manual: http://www.antlr.org/doc/lexer.html#Keywords_and_literals -- Xue Yong Zhi http://seclib.blogspot.com