android_mt6572_jiabo/external/antlr/antlr-3.4/runtime/Python/tests/t025lexerRulePropertyRef.g
2025-09-05 16:56:03 +08:00

18 lines
328 B
Text

lexer grammar t025lexerRulePropertyRef;
options {
language = Python;
}
@lexer::init {
self.properties = []
}
IDENTIFIER:
('a'..'z'|'A'..'Z'|'_') ('a'..'z'|'A'..'Z'|'0'..'9'|'_')*
{
self.properties.append(
($text, $type, $line, $pos, $index, $channel, $start, $stop)
)
}
;
WS: (' ' | '\n')+;