• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1grammar t039labels;
2options {
3  language = Python3;
4}
5
6a returns [l]
7    : ids+=A ( ',' ids+=(A|B) )* C D w=. ids+=. F EOF
8        { l = ($ids, $w) }
9    ;
10
11A: 'a'..'z';
12B: '0'..'9';
13C: a='A' { print($a) };
14D: a='FOOBAR' { print($a) };
15E: 'GNU' a=. { print($a) };
16F: 'BLARZ' a=EOF { print($a) };
17
18WS: ' '+  { $channel = HIDDEN };
19