1 lexer grammar t011lexer; 2 options { 3 language = JavaScript; 4 } 5 6 IDENTIFIER: 7 ('a'..'z'|'A'..'Z'|'_') 8 ('a'..'z' 9 |'A'..'Z' 10 |'0'..'9' 11 |'_' 12 { 13 tlog("Underscore"); 14 tlog("foo"); 15 } 16 )* 17 ; 18 19 WS: (' ' | '\n')+; 20