You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
grammar t034tokenLabelPropertyRef;
|
|
options {
|
|
language = Python;
|
|
}
|
|
|
|
a: t=A
|
|
{
|
|
print $t.text
|
|
print $t.type
|
|
print $t.line
|
|
print $t.pos
|
|
print $t.channel
|
|
print $t.index
|
|
#print $t.tree
|
|
}
|
|
;
|
|
|
|
A: 'a'..'z';
|
|
|
|
WS :
|
|
( ' '
|
|
| '\t'
|
|
| ( '\n'
|
|
| '\r\n'
|
|
| '\r'
|
|
)
|
|
)+
|
|
{ $channel = HIDDEN }
|
|
;
|
|
|