1 lexer grammar t025lexerRulePropertyRef; 2 options { 3 language = JavaScript; 4 } 5 6 @lexer::init { 7 this.properties = []; 8 } 9 10 IDENTIFIER: 11 ('a'..'z'|'A'..'Z'|'_') ('a'..'z'|'A'..'Z'|'0'..'9'|'_')* 12 { 13 this.properties.push( 14 [$text, $type, $line, $pos, $index, $channel, $start, $stop] 15 ); 16 } 17 ; 18 WS: (' ' | '\n')+; 19