On Nov 29, 2006, at 8:44 AM, Bernd Vogt wrote: > Hi all, > > in my current project I have the requirement to lex some tokens > like this: > > lexer grammar ExampleLexer; > … > INDEX : 'index' ; > INDEX_OF : 'index of' ; > INT : '0' | '1'..'9' '0'..'9'* ; Hi, try putting INDEX_OF : 'index of' ; before INDEX. Ter