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.
34 lines
540 B
34 lines
540 B
grammar t034tokenLabelPropertyRef;
|
|
options {
|
|
language = JavaScript;
|
|
}
|
|
|
|
@header {
|
|
var xlog = [];
|
|
}
|
|
|
|
a: t=A
|
|
{
|
|
xlog.push($t.text);
|
|
xlog.push($t.type);
|
|
xlog.push($t.line);
|
|
xlog.push($t.pos);
|
|
xlog.push($t.channel);
|
|
xlog.push($t.index);
|
|
}
|
|
;
|
|
|
|
A: 'a'..'z';
|
|
|
|
WS :
|
|
( ' '
|
|
| '\t'
|
|
| ( '\n'
|
|
| '\r\n'
|
|
| '\r'
|
|
)
|
|
)+
|
|
{ $channel = org.antlr.runtime.Token.HIDDEN_CHANNEL; }
|
|
;
|
|
|