• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1grammar t034tokenLabelPropertyRef;
2options {
3  language = JavaScript;
4}
5
6@header {
7var xlog = [];
8}
9
10a: t=A
11        {
12            xlog.push($t.text);
13            xlog.push($t.type);
14            xlog.push($t.line);
15            xlog.push($t.pos);
16            xlog.push($t.channel);
17            xlog.push($t.index);
18        }
19    ;
20
21A: 'a'..'z';
22
23WS  :
24        (   ' '
25        |   '\t'
26        |  ( '\n'
27            |	'\r\n'
28            |	'\r'
29            )
30        )+
31        { $channel = org.antlr.runtime.Token.HIDDEN_CHANNEL; }
32    ;
33
34