hello all, is there a way to make antlr match the longest token? i have a language parser which is returning keywords instead of idents: TOK_INTEGER instead of TOK_IDENT for: int integer; ^^^ this is really killing my compiler. thanx in advance. -- etoffi Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/