-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathGrammarParser.java
More file actions
833 lines (741 loc) · 22.5 KB
/
GrammarParser.java
File metadata and controls
833 lines (741 loc) · 22.5 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
// $ANTLR 3.5.2 Grammar.g 2021-03-31 19:18:35
import org.antlr.runtime.*;
import java.util.Stack;
import java.util.List;
import java.util.ArrayList;
@SuppressWarnings("all")
public class GrammarParser extends Parser {
public static final String[] tokenNames = new String[] {
"<invalid>", "<EOR>", "<DOWN>", "<UP>", "COMMENTS", "ID", "INT", "STRING",
"WS", "'('", "')'", "'+'", "','", "':'", "'='", "'['", "']'", "'print'"
};
public static final int EOF=-1;
public static final int T__9=9;
public static final int T__10=10;
public static final int T__11=11;
public static final int T__12=12;
public static final int T__13=13;
public static final int T__14=14;
public static final int T__15=15;
public static final int T__16=16;
public static final int T__17=17;
public static final int COMMENTS=4;
public static final int ID=5;
public static final int INT=6;
public static final int STRING=7;
public static final int WS=8;
// delegates
public Parser[] getDelegates() {
return new Parser[] {};
}
// delegators
public GrammarParser(TokenStream input) {
this(input, new RecognizerSharedState());
}
public GrammarParser(TokenStream input, RecognizerSharedState state) {
super(input, state);
}
@Override public String[] getTokenNames() { return GrammarParser.tokenNames; }
@Override public String getGrammarFileName() { return "Grammar.g"; }
ActionRoutines actions = new ActionRoutines();
// $ANTLR start "prog"
// Grammar.g:7:1: prog : ( stmt )+ ;
public final void prog() throws RecognitionException {
try {
// Grammar.g:7:6: ( ( stmt )+ )
// Grammar.g:7:8: ( stmt )+
{
// Grammar.g:7:8: ( stmt )+
int cnt1=0;
loop1:
while (true) {
int alt1=2;
int LA1_0 = input.LA(1);
if ( (LA1_0==ID||LA1_0==9||LA1_0==17) ) {
alt1=1;
}
switch (alt1) {
case 1 :
// Grammar.g:7:9: stmt
{
pushFollow(FOLLOW_stmt_in_prog17);
stmt();
state._fsp--;
}
break;
default :
if ( cnt1 >= 1 ) break loop1;
EarlyExitException eee = new EarlyExitException(1, input);
throw eee;
}
cnt1++;
}
}
}
catch (RecognitionException re) {
reportError(re);
recover(input,re);
}
finally {
// do for sure before leaving
}
}
// $ANTLR end "prog"
// $ANTLR start "stmt"
// Grammar.g:10:1: stmt : ( assignment | unpack | print );
public final void stmt() throws RecognitionException {
try {
// Grammar.g:10:7: ( assignment | unpack | print )
int alt2=3;
switch ( input.LA(1) ) {
case ID:
{
alt2=1;
}
break;
case 9:
{
alt2=2;
}
break;
case 17:
{
alt2=3;
}
break;
default:
NoViableAltException nvae =
new NoViableAltException("", 2, 0, input);
throw nvae;
}
switch (alt2) {
case 1 :
// Grammar.g:10:9: assignment
{
pushFollow(FOLLOW_assignment_in_stmt37);
assignment();
state._fsp--;
}
break;
case 2 :
// Grammar.g:11:11: unpack
{
pushFollow(FOLLOW_unpack_in_stmt50);
unpack();
state._fsp--;
}
break;
case 3 :
// Grammar.g:12:11: print
{
pushFollow(FOLLOW_print_in_stmt63);
print();
state._fsp--;
}
break;
}
}
catch (RecognitionException re) {
reportError(re);
recover(input,re);
}
finally {
// do for sure before leaving
}
}
// $ANTLR end "stmt"
// $ANTLR start "assignment"
// Grammar.g:15:1: assignment : ( ID '=' assignment_tail[$ID.text] | ID '[' INT ']' '=' value | ID '=' STRING | ID '=' INT );
public final void assignment() throws RecognitionException {
Token ID1=null;
Token ID2=null;
Token INT3=null;
Token ID5=null;
Token STRING6=null;
Token ID7=null;
Token INT8=null;
Object value4 =null;
try {
// Grammar.g:15:13: ( ID '=' assignment_tail[$ID.text] | ID '[' INT ']' '=' value | ID '=' STRING | ID '=' INT )
int alt3=4;
int LA3_0 = input.LA(1);
if ( (LA3_0==ID) ) {
int LA3_1 = input.LA(2);
if ( (LA3_1==14) ) {
switch ( input.LA(3) ) {
case STRING:
{
alt3=3;
}
break;
case INT:
{
alt3=4;
}
break;
case ID:
case 9:
{
alt3=1;
}
break;
default:
int nvaeMark = input.mark();
try {
for (int nvaeConsume = 0; nvaeConsume < 3 - 1; nvaeConsume++) {
input.consume();
}
NoViableAltException nvae =
new NoViableAltException("", 3, 2, input);
throw nvae;
} finally {
input.rewind(nvaeMark);
}
}
}
else if ( (LA3_1==15) ) {
alt3=2;
}
else {
int nvaeMark = input.mark();
try {
input.consume();
NoViableAltException nvae =
new NoViableAltException("", 3, 1, input);
throw nvae;
} finally {
input.rewind(nvaeMark);
}
}
}
else {
NoViableAltException nvae =
new NoViableAltException("", 3, 0, input);
throw nvae;
}
switch (alt3) {
case 1 :
// Grammar.g:15:15: ID '=' assignment_tail[$ID.text]
{
ID1=(Token)match(input,ID,FOLLOW_ID_in_assignment81);
match(input,14,FOLLOW_14_in_assignment83);
actions.create_tuple((ID1!=null?ID1.getText():null));
pushFollow(FOLLOW_assignment_tail_in_assignment87);
assignment_tail((ID1!=null?ID1.getText():null));
state._fsp--;
}
break;
case 2 :
// Grammar.g:16:19: ID '[' INT ']' '=' value
{
ID2=(Token)match(input,ID,FOLLOW_ID_in_assignment108);
match(input,15,FOLLOW_15_in_assignment110);
INT3=(Token)match(input,INT,FOLLOW_INT_in_assignment112);
match(input,16,FOLLOW_16_in_assignment114);
match(input,14,FOLLOW_14_in_assignment116);
pushFollow(FOLLOW_value_in_assignment118);
value4=value();
state._fsp--;
actions.update_value((ID2!=null?ID2.getText():null), Integer.parseInt((INT3!=null?INT3.getText():null)), value4);
}
break;
case 3 :
// Grammar.g:17:19: ID '=' STRING
{
ID5=(Token)match(input,ID,FOLLOW_ID_in_assignment140);
match(input,14,FOLLOW_14_in_assignment142);
STRING6=(Token)match(input,STRING,FOLLOW_STRING_in_assignment144);
actions.create_string((ID5!=null?ID5.getText():null), (STRING6!=null?STRING6.getText():null));
}
break;
case 4 :
// Grammar.g:18:19: ID '=' INT
{
ID7=(Token)match(input,ID,FOLLOW_ID_in_assignment166);
match(input,14,FOLLOW_14_in_assignment168);
INT8=(Token)match(input,INT,FOLLOW_INT_in_assignment170);
actions.create_int((ID7!=null?ID7.getText():null), Integer.parseInt((INT8!=null?INT8.getText():null)));
}
break;
}
}
catch (RecognitionException re) {
reportError(re);
recover(input,re);
}
finally {
// do for sure before leaving
}
}
// $ANTLR end "assignment"
// $ANTLR start "assignment_tail"
// Grammar.g:21:1: assignment_tail[String tuple_id] : ( '(' value_tuple[$tuple_id] ')' |id1= ID ( '+' id2= ID )* | ID '[' (begin= INT )? ':' (end= INT )? ']' );
public final void assignment_tail(String tuple_id) throws RecognitionException {
Token id1=null;
Token id2=null;
Token begin=null;
Token end=null;
Token ID9=null;
try {
// Grammar.g:21:35: ( '(' value_tuple[$tuple_id] ')' |id1= ID ( '+' id2= ID )* | ID '[' (begin= INT )? ':' (end= INT )? ']' )
int alt7=3;
int LA7_0 = input.LA(1);
if ( (LA7_0==9) ) {
alt7=1;
}
else if ( (LA7_0==ID) ) {
int LA7_2 = input.LA(2);
if ( (LA7_2==15) ) {
alt7=3;
}
else if ( (LA7_2==EOF||LA7_2==ID||LA7_2==9||LA7_2==11||LA7_2==17) ) {
alt7=2;
}
else {
int nvaeMark = input.mark();
try {
input.consume();
NoViableAltException nvae =
new NoViableAltException("", 7, 2, input);
throw nvae;
} finally {
input.rewind(nvaeMark);
}
}
}
else {
NoViableAltException nvae =
new NoViableAltException("", 7, 0, input);
throw nvae;
}
switch (alt7) {
case 1 :
// Grammar.g:22:17: '(' value_tuple[$tuple_id] ')'
{
match(input,9,FOLLOW_9_in_assignment_tail219);
pushFollow(FOLLOW_value_tuple_in_assignment_tail221);
value_tuple(tuple_id);
state._fsp--;
match(input,10,FOLLOW_10_in_assignment_tail225);
}
break;
case 2 :
// Grammar.g:23:19: id1= ID ( '+' id2= ID )*
{
id1=(Token)match(input,ID,FOLLOW_ID_in_assignment_tail250);
actions.concatenate_tuple(tuple_id, (id1!=null?id1.getText():null));
// Grammar.g:23:81: ( '+' id2= ID )*
loop4:
while (true) {
int alt4=2;
int LA4_0 = input.LA(1);
if ( (LA4_0==11) ) {
alt4=1;
}
switch (alt4) {
case 1 :
// Grammar.g:23:83: '+' id2= ID
{
match(input,11,FOLLOW_11_in_assignment_tail256);
id2=(Token)match(input,ID,FOLLOW_ID_in_assignment_tail262);
actions.concatenate_tuple(tuple_id, (id2!=null?id2.getText():null));
}
break;
default :
break loop4;
}
}
}
break;
case 3 :
// Grammar.g:24:19: ID '[' (begin= INT )? ':' (end= INT )? ']'
{
ID9=(Token)match(input,ID,FOLLOW_ID_in_assignment_tail287);
match(input,15,FOLLOW_15_in_assignment_tail289);
// Grammar.g:24:26: (begin= INT )?
int alt5=2;
int LA5_0 = input.LA(1);
if ( (LA5_0==INT) ) {
alt5=1;
}
switch (alt5) {
case 1 :
// Grammar.g:24:27: begin= INT
{
begin=(Token)match(input,INT,FOLLOW_INT_in_assignment_tail296);
}
break;
}
match(input,13,FOLLOW_13_in_assignment_tail300);
// Grammar.g:24:45: (end= INT )?
int alt6=2;
int LA6_0 = input.LA(1);
if ( (LA6_0==INT) ) {
alt6=1;
}
switch (alt6) {
case 1 :
// Grammar.g:24:46: end= INT
{
end=(Token)match(input,INT,FOLLOW_INT_in_assignment_tail307);
}
break;
}
match(input,16,FOLLOW_16_in_assignment_tail311);
actions.slice_tuple(tuple_id, (ID9!=null?ID9.getText():null), (begin!=null?begin.getText():null), (end!=null?end.getText():null));
}
break;
}
}
catch (RecognitionException re) {
reportError(re);
recover(input,re);
}
finally {
// do for sure before leaving
}
}
// $ANTLR end "assignment_tail"
// $ANTLR start "value_tuple"
// Grammar.g:27:1: value_tuple[String tuple_id] : (t1= value ( ',' t2= value )* |);
public final void value_tuple(String tuple_id) throws RecognitionException {
Object t1 =null;
Object t2 =null;
try {
// Grammar.g:27:30: (t1= value ( ',' t2= value )* |)
int alt9=2;
int LA9_0 = input.LA(1);
if ( ((LA9_0 >= ID && LA9_0 <= STRING)) ) {
alt9=1;
}
else if ( (LA9_0==10) ) {
alt9=2;
}
else {
NoViableAltException nvae =
new NoViableAltException("", 9, 0, input);
throw nvae;
}
switch (alt9) {
case 1 :
// Grammar.g:28:14: t1= value ( ',' t2= value )*
{
pushFollow(FOLLOW_value_in_value_tuple357);
t1=value();
state._fsp--;
actions.add_value(tuple_id, t1);
// Grammar.g:28:68: ( ',' t2= value )*
loop8:
while (true) {
int alt8=2;
int LA8_0 = input.LA(1);
if ( (LA8_0==12) ) {
alt8=1;
}
switch (alt8) {
case 1 :
// Grammar.g:28:69: ',' t2= value
{
match(input,12,FOLLOW_12_in_value_tuple362);
pushFollow(FOLLOW_value_in_value_tuple368);
t2=value();
state._fsp--;
actions.add_value(tuple_id, t2);
}
break;
default :
break loop8;
}
}
}
break;
case 2 :
// Grammar.g:30:14:
{
}
break;
}
}
catch (RecognitionException re) {
reportError(re);
recover(input,re);
}
finally {
// do for sure before leaving
}
}
// $ANTLR end "value_tuple"
// $ANTLR start "value"
// Grammar.g:32:1: value returns [Object val] : ( STRING | INT | ID );
public final Object value() throws RecognitionException {
Object val = null;
Token STRING10=null;
Token INT11=null;
Token ID12=null;
try {
// Grammar.g:32:26: ( STRING | INT | ID )
int alt10=3;
switch ( input.LA(1) ) {
case STRING:
{
alt10=1;
}
break;
case INT:
{
alt10=2;
}
break;
case ID:
{
alt10=3;
}
break;
default:
NoViableAltException nvae =
new NoViableAltException("", 10, 0, input);
throw nvae;
}
switch (alt10) {
case 1 :
// Grammar.g:33:13: STRING
{
STRING10=(Token)match(input,STRING,FOLLOW_STRING_in_value425);
val = new String((STRING10!=null?STRING10.getText():null));
}
break;
case 2 :
// Grammar.g:34:13: INT
{
INT11=(Token)match(input,INT,FOLLOW_INT_in_value441);
val = Integer.parseInt((INT11!=null?INT11.getText():null));
}
break;
case 3 :
// Grammar.g:35:13: ID
{
ID12=(Token)match(input,ID,FOLLOW_ID_in_value460);
val = new String((ID12!=null?ID12.getText():null));
}
break;
}
}
catch (RecognitionException re) {
reportError(re);
recover(input,re);
}
finally {
// do for sure before leaving
}
return val;
}
// $ANTLR end "value"
// $ANTLR start "unpack"
// Grammar.g:38:1: unpack : '(' t3= ID ( ',' t4= ID )* ')' '=' t5= ID ;
public final void unpack() throws RecognitionException {
Token t3=null;
Token t4=null;
Token t5=null;
try {
// Grammar.g:38:8: ( '(' t3= ID ( ',' t4= ID )* ')' '=' t5= ID )
// Grammar.g:38:10: '(' t3= ID ( ',' t4= ID )* ')' '=' t5= ID
{
match(input,9,FOLLOW_9_in_unpack485);
t3=(Token)match(input,ID,FOLLOW_ID_in_unpack491);
actions.add_to_pack((t3!=null?t3.getText():null));
// Grammar.g:38:57: ( ',' t4= ID )*
loop11:
while (true) {
int alt11=2;
int LA11_0 = input.LA(1);
if ( (LA11_0==12) ) {
alt11=1;
}
switch (alt11) {
case 1 :
// Grammar.g:38:58: ',' t4= ID
{
match(input,12,FOLLOW_12_in_unpack496);
t4=(Token)match(input,ID,FOLLOW_ID_in_unpack502);
actions.add_to_pack((t4!=null?t4.getText():null));
}
break;
default :
break loop11;
}
}
match(input,10,FOLLOW_10_in_unpack509);
match(input,14,FOLLOW_14_in_unpack511);
t5=(Token)match(input,ID,FOLLOW_ID_in_unpack517);
actions.unpack((t5!=null?t5.getText():null));
}
}
catch (RecognitionException re) {
reportError(re);
recover(input,re);
}
finally {
// do for sure before leaving
}
}
// $ANTLR end "unpack"
// $ANTLR start "print"
// Grammar.g:41:1: print : ( 'print' '(' STRING ')' | 'print' '(' INT ')' | 'print' '(' ID ')' );
public final void print() throws RecognitionException {
Token STRING13=null;
Token INT14=null;
Token ID15=null;
try {
// Grammar.g:41:7: ( 'print' '(' STRING ')' | 'print' '(' INT ')' | 'print' '(' ID ')' )
int alt12=3;
int LA12_0 = input.LA(1);
if ( (LA12_0==17) ) {
int LA12_1 = input.LA(2);
if ( (LA12_1==9) ) {
switch ( input.LA(3) ) {
case STRING:
{
alt12=1;
}
break;
case INT:
{
alt12=2;
}
break;
case ID:
{
alt12=3;
}
break;
default:
int nvaeMark = input.mark();
try {
for (int nvaeConsume = 0; nvaeConsume < 3 - 1; nvaeConsume++) {
input.consume();
}
NoViableAltException nvae =
new NoViableAltException("", 12, 2, input);
throw nvae;
} finally {
input.rewind(nvaeMark);
}
}
}
else {
int nvaeMark = input.mark();
try {
input.consume();
NoViableAltException nvae =
new NoViableAltException("", 12, 1, input);
throw nvae;
} finally {
input.rewind(nvaeMark);
}
}
}
else {
NoViableAltException nvae =
new NoViableAltException("", 12, 0, input);
throw nvae;
}
switch (alt12) {
case 1 :
// Grammar.g:41:9: 'print' '(' STRING ')'
{
match(input,17,FOLLOW_17_in_print535);
match(input,9,FOLLOW_9_in_print537);
STRING13=(Token)match(input,STRING,FOLLOW_STRING_in_print539);
match(input,10,FOLLOW_10_in_print541);
System.out.println((STRING13!=null?STRING13.getText():null));
}
break;
case 2 :
// Grammar.g:42:9: 'print' '(' INT ')'
{
match(input,17,FOLLOW_17_in_print553);
match(input,9,FOLLOW_9_in_print555);
INT14=(Token)match(input,INT,FOLLOW_INT_in_print557);
match(input,10,FOLLOW_10_in_print559);
System.out.println((INT14!=null?INT14.getText():null));
}
break;
case 3 :
// Grammar.g:43:9: 'print' '(' ID ')'
{
match(input,17,FOLLOW_17_in_print575);
match(input,9,FOLLOW_9_in_print577);
ID15=(Token)match(input,ID,FOLLOW_ID_in_print579);
match(input,10,FOLLOW_10_in_print581);
actions.print((ID15!=null?ID15.getText():null));
}
break;
}
}
catch (RecognitionException re) {
reportError(re);
recover(input,re);
}
finally {
// do for sure before leaving
}
}
// $ANTLR end "print"
// Delegated rules
public static final BitSet FOLLOW_stmt_in_prog17 = new BitSet(new long[]{0x0000000000020222L});
public static final BitSet FOLLOW_assignment_in_stmt37 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_unpack_in_stmt50 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_print_in_stmt63 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_ID_in_assignment81 = new BitSet(new long[]{0x0000000000004000L});
public static final BitSet FOLLOW_14_in_assignment83 = new BitSet(new long[]{0x0000000000000220L});
public static final BitSet FOLLOW_assignment_tail_in_assignment87 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_ID_in_assignment108 = new BitSet(new long[]{0x0000000000008000L});
public static final BitSet FOLLOW_15_in_assignment110 = new BitSet(new long[]{0x0000000000000040L});
public static final BitSet FOLLOW_INT_in_assignment112 = new BitSet(new long[]{0x0000000000010000L});
public static final BitSet FOLLOW_16_in_assignment114 = new BitSet(new long[]{0x0000000000004000L});
public static final BitSet FOLLOW_14_in_assignment116 = new BitSet(new long[]{0x00000000000000E0L});
public static final BitSet FOLLOW_value_in_assignment118 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_ID_in_assignment140 = new BitSet(new long[]{0x0000000000004000L});
public static final BitSet FOLLOW_14_in_assignment142 = new BitSet(new long[]{0x0000000000000080L});
public static final BitSet FOLLOW_STRING_in_assignment144 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_ID_in_assignment166 = new BitSet(new long[]{0x0000000000004000L});
public static final BitSet FOLLOW_14_in_assignment168 = new BitSet(new long[]{0x0000000000000040L});
public static final BitSet FOLLOW_INT_in_assignment170 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_9_in_assignment_tail219 = new BitSet(new long[]{0x00000000000004E0L});
public static final BitSet FOLLOW_value_tuple_in_assignment_tail221 = new BitSet(new long[]{0x0000000000000400L});
public static final BitSet FOLLOW_10_in_assignment_tail225 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_ID_in_assignment_tail250 = new BitSet(new long[]{0x0000000000000802L});
public static final BitSet FOLLOW_11_in_assignment_tail256 = new BitSet(new long[]{0x0000000000000020L});
public static final BitSet FOLLOW_ID_in_assignment_tail262 = new BitSet(new long[]{0x0000000000000802L});
public static final BitSet FOLLOW_ID_in_assignment_tail287 = new BitSet(new long[]{0x0000000000008000L});
public static final BitSet FOLLOW_15_in_assignment_tail289 = new BitSet(new long[]{0x0000000000002040L});
public static final BitSet FOLLOW_INT_in_assignment_tail296 = new BitSet(new long[]{0x0000000000002000L});
public static final BitSet FOLLOW_13_in_assignment_tail300 = new BitSet(new long[]{0x0000000000010040L});
public static final BitSet FOLLOW_INT_in_assignment_tail307 = new BitSet(new long[]{0x0000000000010000L});
public static final BitSet FOLLOW_16_in_assignment_tail311 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_value_in_value_tuple357 = new BitSet(new long[]{0x0000000000001002L});
public static final BitSet FOLLOW_12_in_value_tuple362 = new BitSet(new long[]{0x00000000000000E0L});
public static final BitSet FOLLOW_value_in_value_tuple368 = new BitSet(new long[]{0x0000000000001002L});
public static final BitSet FOLLOW_STRING_in_value425 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_INT_in_value441 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_ID_in_value460 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_9_in_unpack485 = new BitSet(new long[]{0x0000000000000020L});
public static final BitSet FOLLOW_ID_in_unpack491 = new BitSet(new long[]{0x0000000000001400L});
public static final BitSet FOLLOW_12_in_unpack496 = new BitSet(new long[]{0x0000000000000020L});
public static final BitSet FOLLOW_ID_in_unpack502 = new BitSet(new long[]{0x0000000000001400L});
public static final BitSet FOLLOW_10_in_unpack509 = new BitSet(new long[]{0x0000000000004000L});
public static final BitSet FOLLOW_14_in_unpack511 = new BitSet(new long[]{0x0000000000000020L});
public static final BitSet FOLLOW_ID_in_unpack517 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_17_in_print535 = new BitSet(new long[]{0x0000000000000200L});
public static final BitSet FOLLOW_9_in_print537 = new BitSet(new long[]{0x0000000000000080L});
public static final BitSet FOLLOW_STRING_in_print539 = new BitSet(new long[]{0x0000000000000400L});
public static final BitSet FOLLOW_10_in_print541 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_17_in_print553 = new BitSet(new long[]{0x0000000000000200L});
public static final BitSet FOLLOW_9_in_print555 = new BitSet(new long[]{0x0000000000000040L});
public static final BitSet FOLLOW_INT_in_print557 = new BitSet(new long[]{0x0000000000000400L});
public static final BitSet FOLLOW_10_in_print559 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_17_in_print575 = new BitSet(new long[]{0x0000000000000200L});
public static final BitSet FOLLOW_9_in_print577 = new BitSet(new long[]{0x0000000000000020L});
public static final BitSet FOLLOW_ID_in_print579 = new BitSet(new long[]{0x0000000000000400L});
public static final BitSet FOLLOW_10_in_print581 = new BitSet(new long[]{0x0000000000000002L});
}