1lexer grammar TestLexer; 2options { 3 language=ObjC; 4} 5 6@header {} 7 8ID : LETTER (LETTER | DIGIT)* 9 ; 10 11fragment DIGIT : '0'..'9' 12 ; 13 14fragment LETTER 15 : 'a'..'z' | 'A'..'Z' 16 ; 17