aosp12/external/antlr/runtime/Python/tests/t038lexerRuleLabel.g

29 lines
478 B
Plaintext

lexer grammar t038lexerRuleLabel;
options {
language = Python;
}
A: 'a'..'z' WS '0'..'9'
{
print $WS
print $WS.type
print $WS.line
print $WS.pos
print $WS.channel
print $WS.index
print $WS.text
}
;
fragment WS :
( ' '
| '\t'
| ( '\n'
| '\r\n'
| '\r'
)
)+
{ $channel = HIDDEN }
;