1grammar t039labels;
2options {
3 language = JavaScript;
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';
14D: a='FOOBAR';
15E: 'GNU' a=.;
16F: 'BLARZ' a=EOF;
17
18WS: ' '+ { $channel = HIDDEN };
19