-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathparser.out
2647 lines (2099 loc) · 115 KB
/
parser.out
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
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
Created by PLY version 3.11 (http://www.dabeaz.com/ply)
Grammar
Rule 0 S' -> S
Rule 1 S -> MAIN_ACTION PROGRAM START DECL R MAIN_ACTION_C B FINISH
Rule 2 MAIN_ACTION_C -> <empty>
Rule 3 MAIN_ACTION -> <empty>
Rule 4 R -> SUBROUTINE_RULE R
Rule 5 R -> <empty>
Rule 6 SUBROUTINE_RULE -> SUBROUTINE ID SUBACTION B RETURN
Rule 7 SUBACTION -> <empty>
Rule 8 DECL -> DIM ID AS TYPE SEMICOLON DECL
Rule 9 DECL -> DIM ID ARRAY AS TYPE SEMICOLON DECL
Rule 10 DECL -> <empty>
Rule 11 ARRAY -> ARRAY_RULE ARRAY
Rule 12 ARRAY -> ARRAY_RULE
Rule 13 ARRAY_RULE -> LBRACKET EXPRESSION RBRACKET
Rule 14 TYPE -> INT
Rule 15 TYPE -> FLOAT
Rule 16 B -> STATEMENT B
Rule 17 B -> STATEMENT
Rule 18 B -> <empty>
Rule 19 STATEMENT -> IF_RULE
Rule 20 STATEMENT -> IFELSE_RULE
Rule 21 STATEMENT -> WHILE_RULE
Rule 22 STATEMENT -> GOSUB_RULE
Rule 23 STATEMENT -> FOR_RULE
Rule 24 STATEMENT -> PRINT_RULE
Rule 25 STATEMENT -> PRINTLN_RULE
Rule 26 STATEMENT -> INPUT_RULE
Rule 27 STATEMENT -> ASSIGN
Rule 28 INPUT_RULE -> INPUT LPAREN EXPRESSION RPAREN SEMICOLON
Rule 29 PRINT_RULE -> PRINT LPAREN STRING RPAREN SEMICOLON
Rule 30 PRINT_RULE -> PRINT LPAREN EXPRESSION RPAREN SEMICOLON
Rule 31 PRINTLN_RULE -> PRINTLN LPAREN STRING RPAREN SEMICOLON
Rule 32 PRINTLN_RULE -> PRINTLN LPAREN EXPRESSION RPAREN SEMICOLON
Rule 33 GOSUB_RULE -> GOSUB ID SEMICOLON
Rule 34 FOR_RULE -> FOR ASSIGN TO EXPRESSION FOR_ACTION B NEXT ID
Rule 35 FOR_ACTION -> <empty>
Rule 36 WHILE_RULE -> WHILE LPAREN WHILE_ACTION EXPRESSION WHILE_ACTION_JUMP RPAREN B END
Rule 37 WHILE_ACTION -> <empty>
Rule 38 WHILE_ACTION_JUMP -> <empty>
Rule 39 IF_RULE -> IF LPAREN EXPRESSION IF_ACTION RPAREN THEN B END
Rule 40 IFELSE_RULE -> IF LPAREN EXPRESSION IF_ACTION RPAREN THEN B ELSE_ACTION ELSE_RULE END
Rule 41 ELSE_RULE -> ELSE B
Rule 42 IF_ACTION -> <empty>
Rule 43 ELSE_ACTION -> <empty>
Rule 44 ASSIGN -> ID EQUALS EXPRESSION SEMICOLON
Rule 45 ASSIGN -> ID ARRAY BOUND_CHECK EQUALS EXPRESSION SEMICOLON
Rule 46 BOUND_CHECK -> <empty>
Rule 47 EXPRESSION -> OR_LEVEL
Rule 48 OR_LEVEL -> OR_LEVEL OR AND_LEVEL
Rule 49 OR_LEVEL -> AND_LEVEL
Rule 50 AND_LEVEL -> AND_LEVEL AND RELATIONAL_LEVEL
Rule 51 AND_LEVEL -> RELATIONAL_LEVEL
Rule 52 RELATIONAL_LEVEL -> RELATIONAL_LEVEL RELATIONAL ADDSUB_LEVEL
Rule 53 RELATIONAL_LEVEL -> ADDSUB_LEVEL
Rule 54 ADDSUB_LEVEL -> ADDSUB_LEVEL ADDSUB MULTDIV_LEVEL
Rule 55 ADDSUB_LEVEL -> MULTDIV_LEVEL
Rule 56 MULTDIV_LEVEL -> MULTDIV_LEVEL MULTDIV NOT_LEVEL
Rule 57 MULTDIV_LEVEL -> NOT_LEVEL
Rule 58 NOT_LEVEL -> NOT NOT_LEVEL
Rule 59 NOT_LEVEL -> F
Rule 60 F -> ID
Rule 61 F -> ID ARRAY BOUND_CHECK
Rule 62 F -> FNUMBER
Rule 63 F -> NUMBER
Rule 64 F -> LPAREN EXPRESSION RPAREN
Terminals, with rules where they appear
ADDSUB : 54
AND : 50
AS : 8 9
DIM : 8 9
ELSE : 41
END : 36 39 40
EQUALS : 44 45
FINISH : 1
FLOAT : 15
FNUMBER : 62
FOR : 34
GOSUB : 33
ID : 6 8 9 33 34 44 45 60 61
IF : 39 40
INPUT : 28
INT : 14
LBRACKET : 13
LPAREN : 28 29 30 31 32 36 39 40 64
MULTDIV : 56
NEXT : 34
NOT : 58
NUMBER : 63
OR : 48
PRINT : 29 30
PRINTLN : 31 32
PROGRAM : 1
RBRACKET : 13
RELATIONAL : 52
RETURN : 6
RPAREN : 28 29 30 31 32 36 39 40 64
SEMICOLON : 8 9 28 29 30 31 32 33 44 45
START : 1
STRING : 29 31
SUBROUTINE : 6
THEN : 39 40
TO : 34
WHILE : 36
error :
Nonterminals, with rules where they appear
ADDSUB_LEVEL : 52 53 54
AND_LEVEL : 48 49 50
ARRAY : 9 11 45 61
ARRAY_RULE : 11 12
ASSIGN : 27 34
B : 1 6 16 34 36 39 40 41
BOUND_CHECK : 45 61
DECL : 1 8 9
ELSE_ACTION : 40
ELSE_RULE : 40
EXPRESSION : 13 28 30 32 34 36 39 40 44 45 64
F : 59
FOR_ACTION : 34
FOR_RULE : 23
GOSUB_RULE : 22
IFELSE_RULE : 20
IF_ACTION : 39 40
IF_RULE : 19
INPUT_RULE : 26
MAIN_ACTION : 1
MAIN_ACTION_C : 1
MULTDIV_LEVEL : 54 55 56
NOT_LEVEL : 56 57 58
OR_LEVEL : 47 48
PRINTLN_RULE : 25
PRINT_RULE : 24
R : 1 4
RELATIONAL_LEVEL : 50 51 52
S : 0
STATEMENT : 16 17
SUBACTION : 6
SUBROUTINE_RULE : 4
TYPE : 8 9
WHILE_ACTION : 36
WHILE_ACTION_JUMP : 36
WHILE_RULE : 21
Parsing method: LALR
state 0
(0) S' -> . S
(1) S -> . MAIN_ACTION PROGRAM START DECL R MAIN_ACTION_C B FINISH
(3) MAIN_ACTION -> .
PROGRAM reduce using rule 3 (MAIN_ACTION -> .)
S shift and go to state 1
MAIN_ACTION shift and go to state 2
state 1
(0) S' -> S .
state 2
(1) S -> MAIN_ACTION . PROGRAM START DECL R MAIN_ACTION_C B FINISH
PROGRAM shift and go to state 3
state 3
(1) S -> MAIN_ACTION PROGRAM . START DECL R MAIN_ACTION_C B FINISH
START shift and go to state 4
state 4
(1) S -> MAIN_ACTION PROGRAM START . DECL R MAIN_ACTION_C B FINISH
(8) DECL -> . DIM ID AS TYPE SEMICOLON DECL
(9) DECL -> . DIM ID ARRAY AS TYPE SEMICOLON DECL
(10) DECL -> .
DIM shift and go to state 6
SUBROUTINE reduce using rule 10 (DECL -> .)
IF reduce using rule 10 (DECL -> .)
WHILE reduce using rule 10 (DECL -> .)
GOSUB reduce using rule 10 (DECL -> .)
FOR reduce using rule 10 (DECL -> .)
PRINT reduce using rule 10 (DECL -> .)
PRINTLN reduce using rule 10 (DECL -> .)
INPUT reduce using rule 10 (DECL -> .)
ID reduce using rule 10 (DECL -> .)
FINISH reduce using rule 10 (DECL -> .)
DECL shift and go to state 5
state 5
(1) S -> MAIN_ACTION PROGRAM START DECL . R MAIN_ACTION_C B FINISH
(4) R -> . SUBROUTINE_RULE R
(5) R -> .
(6) SUBROUTINE_RULE -> . SUBROUTINE ID SUBACTION B RETURN
IF reduce using rule 5 (R -> .)
WHILE reduce using rule 5 (R -> .)
GOSUB reduce using rule 5 (R -> .)
FOR reduce using rule 5 (R -> .)
PRINT reduce using rule 5 (R -> .)
PRINTLN reduce using rule 5 (R -> .)
INPUT reduce using rule 5 (R -> .)
ID reduce using rule 5 (R -> .)
FINISH reduce using rule 5 (R -> .)
SUBROUTINE shift and go to state 9
R shift and go to state 7
SUBROUTINE_RULE shift and go to state 8
state 6
(8) DECL -> DIM . ID AS TYPE SEMICOLON DECL
(9) DECL -> DIM . ID ARRAY AS TYPE SEMICOLON DECL
ID shift and go to state 10
state 7
(1) S -> MAIN_ACTION PROGRAM START DECL R . MAIN_ACTION_C B FINISH
(2) MAIN_ACTION_C -> .
IF reduce using rule 2 (MAIN_ACTION_C -> .)
WHILE reduce using rule 2 (MAIN_ACTION_C -> .)
GOSUB reduce using rule 2 (MAIN_ACTION_C -> .)
FOR reduce using rule 2 (MAIN_ACTION_C -> .)
PRINT reduce using rule 2 (MAIN_ACTION_C -> .)
PRINTLN reduce using rule 2 (MAIN_ACTION_C -> .)
INPUT reduce using rule 2 (MAIN_ACTION_C -> .)
ID reduce using rule 2 (MAIN_ACTION_C -> .)
FINISH reduce using rule 2 (MAIN_ACTION_C -> .)
MAIN_ACTION_C shift and go to state 11
state 8
(4) R -> SUBROUTINE_RULE . R
(4) R -> . SUBROUTINE_RULE R
(5) R -> .
(6) SUBROUTINE_RULE -> . SUBROUTINE ID SUBACTION B RETURN
IF reduce using rule 5 (R -> .)
WHILE reduce using rule 5 (R -> .)
GOSUB reduce using rule 5 (R -> .)
FOR reduce using rule 5 (R -> .)
PRINT reduce using rule 5 (R -> .)
PRINTLN reduce using rule 5 (R -> .)
INPUT reduce using rule 5 (R -> .)
ID reduce using rule 5 (R -> .)
FINISH reduce using rule 5 (R -> .)
SUBROUTINE shift and go to state 9
SUBROUTINE_RULE shift and go to state 8
R shift and go to state 12
state 9
(6) SUBROUTINE_RULE -> SUBROUTINE . ID SUBACTION B RETURN
ID shift and go to state 13
state 10
(8) DECL -> DIM ID . AS TYPE SEMICOLON DECL
(9) DECL -> DIM ID . ARRAY AS TYPE SEMICOLON DECL
(11) ARRAY -> . ARRAY_RULE ARRAY
(12) ARRAY -> . ARRAY_RULE
(13) ARRAY_RULE -> . LBRACKET EXPRESSION RBRACKET
AS shift and go to state 14
LBRACKET shift and go to state 17
ARRAY shift and go to state 15
ARRAY_RULE shift and go to state 16
state 11
(1) S -> MAIN_ACTION PROGRAM START DECL R MAIN_ACTION_C . B FINISH
(16) B -> . STATEMENT B
(17) B -> . STATEMENT
(18) B -> .
(19) STATEMENT -> . IF_RULE
(20) STATEMENT -> . IFELSE_RULE
(21) STATEMENT -> . WHILE_RULE
(22) STATEMENT -> . GOSUB_RULE
(23) STATEMENT -> . FOR_RULE
(24) STATEMENT -> . PRINT_RULE
(25) STATEMENT -> . PRINTLN_RULE
(26) STATEMENT -> . INPUT_RULE
(27) STATEMENT -> . ASSIGN
(39) IF_RULE -> . IF LPAREN EXPRESSION IF_ACTION RPAREN THEN B END
(40) IFELSE_RULE -> . IF LPAREN EXPRESSION IF_ACTION RPAREN THEN B ELSE_ACTION ELSE_RULE END
(36) WHILE_RULE -> . WHILE LPAREN WHILE_ACTION EXPRESSION WHILE_ACTION_JUMP RPAREN B END
(33) GOSUB_RULE -> . GOSUB ID SEMICOLON
(34) FOR_RULE -> . FOR ASSIGN TO EXPRESSION FOR_ACTION B NEXT ID
(29) PRINT_RULE -> . PRINT LPAREN STRING RPAREN SEMICOLON
(30) PRINT_RULE -> . PRINT LPAREN EXPRESSION RPAREN SEMICOLON
(31) PRINTLN_RULE -> . PRINTLN LPAREN STRING RPAREN SEMICOLON
(32) PRINTLN_RULE -> . PRINTLN LPAREN EXPRESSION RPAREN SEMICOLON
(28) INPUT_RULE -> . INPUT LPAREN EXPRESSION RPAREN SEMICOLON
(44) ASSIGN -> . ID EQUALS EXPRESSION SEMICOLON
(45) ASSIGN -> . ID ARRAY BOUND_CHECK EQUALS EXPRESSION SEMICOLON
FINISH reduce using rule 18 (B -> .)
IF shift and go to state 29
WHILE shift and go to state 30
GOSUB shift and go to state 31
FOR shift and go to state 33
PRINT shift and go to state 34
PRINTLN shift and go to state 35
INPUT shift and go to state 36
ID shift and go to state 32
B shift and go to state 18
STATEMENT shift and go to state 19
IF_RULE shift and go to state 20
IFELSE_RULE shift and go to state 21
WHILE_RULE shift and go to state 22
GOSUB_RULE shift and go to state 23
FOR_RULE shift and go to state 24
PRINT_RULE shift and go to state 25
PRINTLN_RULE shift and go to state 26
INPUT_RULE shift and go to state 27
ASSIGN shift and go to state 28
state 12
(4) R -> SUBROUTINE_RULE R .
IF reduce using rule 4 (R -> SUBROUTINE_RULE R .)
WHILE reduce using rule 4 (R -> SUBROUTINE_RULE R .)
GOSUB reduce using rule 4 (R -> SUBROUTINE_RULE R .)
FOR reduce using rule 4 (R -> SUBROUTINE_RULE R .)
PRINT reduce using rule 4 (R -> SUBROUTINE_RULE R .)
PRINTLN reduce using rule 4 (R -> SUBROUTINE_RULE R .)
INPUT reduce using rule 4 (R -> SUBROUTINE_RULE R .)
ID reduce using rule 4 (R -> SUBROUTINE_RULE R .)
FINISH reduce using rule 4 (R -> SUBROUTINE_RULE R .)
state 13
(6) SUBROUTINE_RULE -> SUBROUTINE ID . SUBACTION B RETURN
(7) SUBACTION -> .
IF reduce using rule 7 (SUBACTION -> .)
WHILE reduce using rule 7 (SUBACTION -> .)
GOSUB reduce using rule 7 (SUBACTION -> .)
FOR reduce using rule 7 (SUBACTION -> .)
PRINT reduce using rule 7 (SUBACTION -> .)
PRINTLN reduce using rule 7 (SUBACTION -> .)
INPUT reduce using rule 7 (SUBACTION -> .)
ID reduce using rule 7 (SUBACTION -> .)
RETURN reduce using rule 7 (SUBACTION -> .)
SUBACTION shift and go to state 37
state 14
(8) DECL -> DIM ID AS . TYPE SEMICOLON DECL
(14) TYPE -> . INT
(15) TYPE -> . FLOAT
INT shift and go to state 39
FLOAT shift and go to state 40
TYPE shift and go to state 38
state 15
(9) DECL -> DIM ID ARRAY . AS TYPE SEMICOLON DECL
AS shift and go to state 41
state 16
(11) ARRAY -> ARRAY_RULE . ARRAY
(12) ARRAY -> ARRAY_RULE .
(11) ARRAY -> . ARRAY_RULE ARRAY
(12) ARRAY -> . ARRAY_RULE
(13) ARRAY_RULE -> . LBRACKET EXPRESSION RBRACKET
AS reduce using rule 12 (ARRAY -> ARRAY_RULE .)
EQUALS reduce using rule 12 (ARRAY -> ARRAY_RULE .)
MULTDIV reduce using rule 12 (ARRAY -> ARRAY_RULE .)
ADDSUB reduce using rule 12 (ARRAY -> ARRAY_RULE .)
RELATIONAL reduce using rule 12 (ARRAY -> ARRAY_RULE .)
AND reduce using rule 12 (ARRAY -> ARRAY_RULE .)
OR reduce using rule 12 (ARRAY -> ARRAY_RULE .)
RBRACKET reduce using rule 12 (ARRAY -> ARRAY_RULE .)
RPAREN reduce using rule 12 (ARRAY -> ARRAY_RULE .)
SEMICOLON reduce using rule 12 (ARRAY -> ARRAY_RULE .)
IF reduce using rule 12 (ARRAY -> ARRAY_RULE .)
WHILE reduce using rule 12 (ARRAY -> ARRAY_RULE .)
GOSUB reduce using rule 12 (ARRAY -> ARRAY_RULE .)
FOR reduce using rule 12 (ARRAY -> ARRAY_RULE .)
PRINT reduce using rule 12 (ARRAY -> ARRAY_RULE .)
PRINTLN reduce using rule 12 (ARRAY -> ARRAY_RULE .)
INPUT reduce using rule 12 (ARRAY -> ARRAY_RULE .)
ID reduce using rule 12 (ARRAY -> ARRAY_RULE .)
NEXT reduce using rule 12 (ARRAY -> ARRAY_RULE .)
LBRACKET shift and go to state 17
ARRAY_RULE shift and go to state 16
ARRAY shift and go to state 42
state 17
(13) ARRAY_RULE -> LBRACKET . EXPRESSION RBRACKET
(47) EXPRESSION -> . OR_LEVEL
(48) OR_LEVEL -> . OR_LEVEL OR AND_LEVEL
(49) OR_LEVEL -> . AND_LEVEL
(50) AND_LEVEL -> . AND_LEVEL AND RELATIONAL_LEVEL
(51) AND_LEVEL -> . RELATIONAL_LEVEL
(52) RELATIONAL_LEVEL -> . RELATIONAL_LEVEL RELATIONAL ADDSUB_LEVEL
(53) RELATIONAL_LEVEL -> . ADDSUB_LEVEL
(54) ADDSUB_LEVEL -> . ADDSUB_LEVEL ADDSUB MULTDIV_LEVEL
(55) ADDSUB_LEVEL -> . MULTDIV_LEVEL
(56) MULTDIV_LEVEL -> . MULTDIV_LEVEL MULTDIV NOT_LEVEL
(57) MULTDIV_LEVEL -> . NOT_LEVEL
(58) NOT_LEVEL -> . NOT NOT_LEVEL
(59) NOT_LEVEL -> . F
(60) F -> . ID
(61) F -> . ID ARRAY BOUND_CHECK
(62) F -> . FNUMBER
(63) F -> . NUMBER
(64) F -> . LPAREN EXPRESSION RPAREN
NOT shift and go to state 50
ID shift and go to state 52
FNUMBER shift and go to state 53
NUMBER shift and go to state 54
LPAREN shift and go to state 55
EXPRESSION shift and go to state 43
OR_LEVEL shift and go to state 44
AND_LEVEL shift and go to state 45
RELATIONAL_LEVEL shift and go to state 46
ADDSUB_LEVEL shift and go to state 47
MULTDIV_LEVEL shift and go to state 48
NOT_LEVEL shift and go to state 49
F shift and go to state 51
state 18
(1) S -> MAIN_ACTION PROGRAM START DECL R MAIN_ACTION_C B . FINISH
FINISH shift and go to state 56
state 19
(16) B -> STATEMENT . B
(17) B -> STATEMENT .
(16) B -> . STATEMENT B
(17) B -> . STATEMENT
(18) B -> .
(19) STATEMENT -> . IF_RULE
(20) STATEMENT -> . IFELSE_RULE
(21) STATEMENT -> . WHILE_RULE
(22) STATEMENT -> . GOSUB_RULE
(23) STATEMENT -> . FOR_RULE
(24) STATEMENT -> . PRINT_RULE
(25) STATEMENT -> . PRINTLN_RULE
(26) STATEMENT -> . INPUT_RULE
(27) STATEMENT -> . ASSIGN
(39) IF_RULE -> . IF LPAREN EXPRESSION IF_ACTION RPAREN THEN B END
(40) IFELSE_RULE -> . IF LPAREN EXPRESSION IF_ACTION RPAREN THEN B ELSE_ACTION ELSE_RULE END
(36) WHILE_RULE -> . WHILE LPAREN WHILE_ACTION EXPRESSION WHILE_ACTION_JUMP RPAREN B END
(33) GOSUB_RULE -> . GOSUB ID SEMICOLON
(34) FOR_RULE -> . FOR ASSIGN TO EXPRESSION FOR_ACTION B NEXT ID
(29) PRINT_RULE -> . PRINT LPAREN STRING RPAREN SEMICOLON
(30) PRINT_RULE -> . PRINT LPAREN EXPRESSION RPAREN SEMICOLON
(31) PRINTLN_RULE -> . PRINTLN LPAREN STRING RPAREN SEMICOLON
(32) PRINTLN_RULE -> . PRINTLN LPAREN EXPRESSION RPAREN SEMICOLON
(28) INPUT_RULE -> . INPUT LPAREN EXPRESSION RPAREN SEMICOLON
(44) ASSIGN -> . ID EQUALS EXPRESSION SEMICOLON
(45) ASSIGN -> . ID ARRAY BOUND_CHECK EQUALS EXPRESSION SEMICOLON
! reduce/reduce conflict for FINISH resolved using rule 17 (B -> STATEMENT .)
! reduce/reduce conflict for RETURN resolved using rule 17 (B -> STATEMENT .)
! reduce/reduce conflict for NEXT resolved using rule 17 (B -> STATEMENT .)
! reduce/reduce conflict for END resolved using rule 17 (B -> STATEMENT .)
! reduce/reduce conflict for ELSE resolved using rule 17 (B -> STATEMENT .)
FINISH reduce using rule 17 (B -> STATEMENT .)
RETURN reduce using rule 17 (B -> STATEMENT .)
NEXT reduce using rule 17 (B -> STATEMENT .)
END reduce using rule 17 (B -> STATEMENT .)
ELSE reduce using rule 17 (B -> STATEMENT .)
IF shift and go to state 29
WHILE shift and go to state 30
GOSUB shift and go to state 31
FOR shift and go to state 33
PRINT shift and go to state 34
PRINTLN shift and go to state 35
INPUT shift and go to state 36
ID shift and go to state 32
! FINISH [ reduce using rule 18 (B -> .) ]
! RETURN [ reduce using rule 18 (B -> .) ]
! NEXT [ reduce using rule 18 (B -> .) ]
! END [ reduce using rule 18 (B -> .) ]
! ELSE [ reduce using rule 18 (B -> .) ]
STATEMENT shift and go to state 19
B shift and go to state 57
IF_RULE shift and go to state 20
IFELSE_RULE shift and go to state 21
WHILE_RULE shift and go to state 22
GOSUB_RULE shift and go to state 23
FOR_RULE shift and go to state 24
PRINT_RULE shift and go to state 25
PRINTLN_RULE shift and go to state 26
INPUT_RULE shift and go to state 27
ASSIGN shift and go to state 28
state 20
(19) STATEMENT -> IF_RULE .
IF reduce using rule 19 (STATEMENT -> IF_RULE .)
WHILE reduce using rule 19 (STATEMENT -> IF_RULE .)
GOSUB reduce using rule 19 (STATEMENT -> IF_RULE .)
FOR reduce using rule 19 (STATEMENT -> IF_RULE .)
PRINT reduce using rule 19 (STATEMENT -> IF_RULE .)
PRINTLN reduce using rule 19 (STATEMENT -> IF_RULE .)
INPUT reduce using rule 19 (STATEMENT -> IF_RULE .)
ID reduce using rule 19 (STATEMENT -> IF_RULE .)
FINISH reduce using rule 19 (STATEMENT -> IF_RULE .)
RETURN reduce using rule 19 (STATEMENT -> IF_RULE .)
NEXT reduce using rule 19 (STATEMENT -> IF_RULE .)
END reduce using rule 19 (STATEMENT -> IF_RULE .)
ELSE reduce using rule 19 (STATEMENT -> IF_RULE .)
state 21
(20) STATEMENT -> IFELSE_RULE .
IF reduce using rule 20 (STATEMENT -> IFELSE_RULE .)
WHILE reduce using rule 20 (STATEMENT -> IFELSE_RULE .)
GOSUB reduce using rule 20 (STATEMENT -> IFELSE_RULE .)
FOR reduce using rule 20 (STATEMENT -> IFELSE_RULE .)
PRINT reduce using rule 20 (STATEMENT -> IFELSE_RULE .)
PRINTLN reduce using rule 20 (STATEMENT -> IFELSE_RULE .)
INPUT reduce using rule 20 (STATEMENT -> IFELSE_RULE .)
ID reduce using rule 20 (STATEMENT -> IFELSE_RULE .)
FINISH reduce using rule 20 (STATEMENT -> IFELSE_RULE .)
RETURN reduce using rule 20 (STATEMENT -> IFELSE_RULE .)
NEXT reduce using rule 20 (STATEMENT -> IFELSE_RULE .)
END reduce using rule 20 (STATEMENT -> IFELSE_RULE .)
ELSE reduce using rule 20 (STATEMENT -> IFELSE_RULE .)
state 22
(21) STATEMENT -> WHILE_RULE .
IF reduce using rule 21 (STATEMENT -> WHILE_RULE .)
WHILE reduce using rule 21 (STATEMENT -> WHILE_RULE .)
GOSUB reduce using rule 21 (STATEMENT -> WHILE_RULE .)
FOR reduce using rule 21 (STATEMENT -> WHILE_RULE .)
PRINT reduce using rule 21 (STATEMENT -> WHILE_RULE .)
PRINTLN reduce using rule 21 (STATEMENT -> WHILE_RULE .)
INPUT reduce using rule 21 (STATEMENT -> WHILE_RULE .)
ID reduce using rule 21 (STATEMENT -> WHILE_RULE .)
FINISH reduce using rule 21 (STATEMENT -> WHILE_RULE .)
RETURN reduce using rule 21 (STATEMENT -> WHILE_RULE .)
NEXT reduce using rule 21 (STATEMENT -> WHILE_RULE .)
END reduce using rule 21 (STATEMENT -> WHILE_RULE .)
ELSE reduce using rule 21 (STATEMENT -> WHILE_RULE .)
state 23
(22) STATEMENT -> GOSUB_RULE .
IF reduce using rule 22 (STATEMENT -> GOSUB_RULE .)
WHILE reduce using rule 22 (STATEMENT -> GOSUB_RULE .)
GOSUB reduce using rule 22 (STATEMENT -> GOSUB_RULE .)
FOR reduce using rule 22 (STATEMENT -> GOSUB_RULE .)
PRINT reduce using rule 22 (STATEMENT -> GOSUB_RULE .)
PRINTLN reduce using rule 22 (STATEMENT -> GOSUB_RULE .)
INPUT reduce using rule 22 (STATEMENT -> GOSUB_RULE .)
ID reduce using rule 22 (STATEMENT -> GOSUB_RULE .)
FINISH reduce using rule 22 (STATEMENT -> GOSUB_RULE .)
RETURN reduce using rule 22 (STATEMENT -> GOSUB_RULE .)
NEXT reduce using rule 22 (STATEMENT -> GOSUB_RULE .)
END reduce using rule 22 (STATEMENT -> GOSUB_RULE .)
ELSE reduce using rule 22 (STATEMENT -> GOSUB_RULE .)
state 24
(23) STATEMENT -> FOR_RULE .
IF reduce using rule 23 (STATEMENT -> FOR_RULE .)
WHILE reduce using rule 23 (STATEMENT -> FOR_RULE .)
GOSUB reduce using rule 23 (STATEMENT -> FOR_RULE .)
FOR reduce using rule 23 (STATEMENT -> FOR_RULE .)
PRINT reduce using rule 23 (STATEMENT -> FOR_RULE .)
PRINTLN reduce using rule 23 (STATEMENT -> FOR_RULE .)
INPUT reduce using rule 23 (STATEMENT -> FOR_RULE .)
ID reduce using rule 23 (STATEMENT -> FOR_RULE .)
FINISH reduce using rule 23 (STATEMENT -> FOR_RULE .)
RETURN reduce using rule 23 (STATEMENT -> FOR_RULE .)
NEXT reduce using rule 23 (STATEMENT -> FOR_RULE .)
END reduce using rule 23 (STATEMENT -> FOR_RULE .)
ELSE reduce using rule 23 (STATEMENT -> FOR_RULE .)
state 25
(24) STATEMENT -> PRINT_RULE .
IF reduce using rule 24 (STATEMENT -> PRINT_RULE .)
WHILE reduce using rule 24 (STATEMENT -> PRINT_RULE .)
GOSUB reduce using rule 24 (STATEMENT -> PRINT_RULE .)
FOR reduce using rule 24 (STATEMENT -> PRINT_RULE .)
PRINT reduce using rule 24 (STATEMENT -> PRINT_RULE .)
PRINTLN reduce using rule 24 (STATEMENT -> PRINT_RULE .)
INPUT reduce using rule 24 (STATEMENT -> PRINT_RULE .)
ID reduce using rule 24 (STATEMENT -> PRINT_RULE .)
FINISH reduce using rule 24 (STATEMENT -> PRINT_RULE .)
RETURN reduce using rule 24 (STATEMENT -> PRINT_RULE .)
NEXT reduce using rule 24 (STATEMENT -> PRINT_RULE .)
END reduce using rule 24 (STATEMENT -> PRINT_RULE .)
ELSE reduce using rule 24 (STATEMENT -> PRINT_RULE .)
state 26
(25) STATEMENT -> PRINTLN_RULE .
IF reduce using rule 25 (STATEMENT -> PRINTLN_RULE .)
WHILE reduce using rule 25 (STATEMENT -> PRINTLN_RULE .)
GOSUB reduce using rule 25 (STATEMENT -> PRINTLN_RULE .)
FOR reduce using rule 25 (STATEMENT -> PRINTLN_RULE .)
PRINT reduce using rule 25 (STATEMENT -> PRINTLN_RULE .)
PRINTLN reduce using rule 25 (STATEMENT -> PRINTLN_RULE .)
INPUT reduce using rule 25 (STATEMENT -> PRINTLN_RULE .)
ID reduce using rule 25 (STATEMENT -> PRINTLN_RULE .)
FINISH reduce using rule 25 (STATEMENT -> PRINTLN_RULE .)
RETURN reduce using rule 25 (STATEMENT -> PRINTLN_RULE .)
NEXT reduce using rule 25 (STATEMENT -> PRINTLN_RULE .)
END reduce using rule 25 (STATEMENT -> PRINTLN_RULE .)
ELSE reduce using rule 25 (STATEMENT -> PRINTLN_RULE .)
state 27
(26) STATEMENT -> INPUT_RULE .
IF reduce using rule 26 (STATEMENT -> INPUT_RULE .)
WHILE reduce using rule 26 (STATEMENT -> INPUT_RULE .)
GOSUB reduce using rule 26 (STATEMENT -> INPUT_RULE .)
FOR reduce using rule 26 (STATEMENT -> INPUT_RULE .)
PRINT reduce using rule 26 (STATEMENT -> INPUT_RULE .)
PRINTLN reduce using rule 26 (STATEMENT -> INPUT_RULE .)
INPUT reduce using rule 26 (STATEMENT -> INPUT_RULE .)
ID reduce using rule 26 (STATEMENT -> INPUT_RULE .)
FINISH reduce using rule 26 (STATEMENT -> INPUT_RULE .)
RETURN reduce using rule 26 (STATEMENT -> INPUT_RULE .)
NEXT reduce using rule 26 (STATEMENT -> INPUT_RULE .)
END reduce using rule 26 (STATEMENT -> INPUT_RULE .)
ELSE reduce using rule 26 (STATEMENT -> INPUT_RULE .)
state 28
(27) STATEMENT -> ASSIGN .
IF reduce using rule 27 (STATEMENT -> ASSIGN .)
WHILE reduce using rule 27 (STATEMENT -> ASSIGN .)
GOSUB reduce using rule 27 (STATEMENT -> ASSIGN .)
FOR reduce using rule 27 (STATEMENT -> ASSIGN .)
PRINT reduce using rule 27 (STATEMENT -> ASSIGN .)
PRINTLN reduce using rule 27 (STATEMENT -> ASSIGN .)
INPUT reduce using rule 27 (STATEMENT -> ASSIGN .)
ID reduce using rule 27 (STATEMENT -> ASSIGN .)
FINISH reduce using rule 27 (STATEMENT -> ASSIGN .)
RETURN reduce using rule 27 (STATEMENT -> ASSIGN .)
NEXT reduce using rule 27 (STATEMENT -> ASSIGN .)
END reduce using rule 27 (STATEMENT -> ASSIGN .)
ELSE reduce using rule 27 (STATEMENT -> ASSIGN .)
state 29
(39) IF_RULE -> IF . LPAREN EXPRESSION IF_ACTION RPAREN THEN B END
(40) IFELSE_RULE -> IF . LPAREN EXPRESSION IF_ACTION RPAREN THEN B ELSE_ACTION ELSE_RULE END
LPAREN shift and go to state 58
state 30
(36) WHILE_RULE -> WHILE . LPAREN WHILE_ACTION EXPRESSION WHILE_ACTION_JUMP RPAREN B END
LPAREN shift and go to state 59
state 31
(33) GOSUB_RULE -> GOSUB . ID SEMICOLON
ID shift and go to state 60
state 32
(44) ASSIGN -> ID . EQUALS EXPRESSION SEMICOLON
(45) ASSIGN -> ID . ARRAY BOUND_CHECK EQUALS EXPRESSION SEMICOLON
(11) ARRAY -> . ARRAY_RULE ARRAY
(12) ARRAY -> . ARRAY_RULE
(13) ARRAY_RULE -> . LBRACKET EXPRESSION RBRACKET
EQUALS shift and go to state 61
LBRACKET shift and go to state 17
ARRAY shift and go to state 62
ARRAY_RULE shift and go to state 16
state 33
(34) FOR_RULE -> FOR . ASSIGN TO EXPRESSION FOR_ACTION B NEXT ID
(44) ASSIGN -> . ID EQUALS EXPRESSION SEMICOLON
(45) ASSIGN -> . ID ARRAY BOUND_CHECK EQUALS EXPRESSION SEMICOLON
ID shift and go to state 32
ASSIGN shift and go to state 63
state 34
(29) PRINT_RULE -> PRINT . LPAREN STRING RPAREN SEMICOLON
(30) PRINT_RULE -> PRINT . LPAREN EXPRESSION RPAREN SEMICOLON
LPAREN shift and go to state 64
state 35
(31) PRINTLN_RULE -> PRINTLN . LPAREN STRING RPAREN SEMICOLON
(32) PRINTLN_RULE -> PRINTLN . LPAREN EXPRESSION RPAREN SEMICOLON
LPAREN shift and go to state 65
state 36
(28) INPUT_RULE -> INPUT . LPAREN EXPRESSION RPAREN SEMICOLON
LPAREN shift and go to state 66
state 37
(6) SUBROUTINE_RULE -> SUBROUTINE ID SUBACTION . B RETURN
(16) B -> . STATEMENT B
(17) B -> . STATEMENT
(18) B -> .
(19) STATEMENT -> . IF_RULE
(20) STATEMENT -> . IFELSE_RULE
(21) STATEMENT -> . WHILE_RULE
(22) STATEMENT -> . GOSUB_RULE
(23) STATEMENT -> . FOR_RULE
(24) STATEMENT -> . PRINT_RULE
(25) STATEMENT -> . PRINTLN_RULE
(26) STATEMENT -> . INPUT_RULE
(27) STATEMENT -> . ASSIGN
(39) IF_RULE -> . IF LPAREN EXPRESSION IF_ACTION RPAREN THEN B END
(40) IFELSE_RULE -> . IF LPAREN EXPRESSION IF_ACTION RPAREN THEN B ELSE_ACTION ELSE_RULE END
(36) WHILE_RULE -> . WHILE LPAREN WHILE_ACTION EXPRESSION WHILE_ACTION_JUMP RPAREN B END
(33) GOSUB_RULE -> . GOSUB ID SEMICOLON
(34) FOR_RULE -> . FOR ASSIGN TO EXPRESSION FOR_ACTION B NEXT ID
(29) PRINT_RULE -> . PRINT LPAREN STRING RPAREN SEMICOLON
(30) PRINT_RULE -> . PRINT LPAREN EXPRESSION RPAREN SEMICOLON
(31) PRINTLN_RULE -> . PRINTLN LPAREN STRING RPAREN SEMICOLON
(32) PRINTLN_RULE -> . PRINTLN LPAREN EXPRESSION RPAREN SEMICOLON
(28) INPUT_RULE -> . INPUT LPAREN EXPRESSION RPAREN SEMICOLON
(44) ASSIGN -> . ID EQUALS EXPRESSION SEMICOLON
(45) ASSIGN -> . ID ARRAY BOUND_CHECK EQUALS EXPRESSION SEMICOLON
RETURN reduce using rule 18 (B -> .)
IF shift and go to state 29
WHILE shift and go to state 30
GOSUB shift and go to state 31
FOR shift and go to state 33
PRINT shift and go to state 34
PRINTLN shift and go to state 35
INPUT shift and go to state 36
ID shift and go to state 32
B shift and go to state 67
STATEMENT shift and go to state 19
IF_RULE shift and go to state 20
IFELSE_RULE shift and go to state 21
WHILE_RULE shift and go to state 22
GOSUB_RULE shift and go to state 23
FOR_RULE shift and go to state 24
PRINT_RULE shift and go to state 25
PRINTLN_RULE shift and go to state 26
INPUT_RULE shift and go to state 27
ASSIGN shift and go to state 28
state 38
(8) DECL -> DIM ID AS TYPE . SEMICOLON DECL
SEMICOLON shift and go to state 68
state 39
(14) TYPE -> INT .
SEMICOLON reduce using rule 14 (TYPE -> INT .)
state 40
(15) TYPE -> FLOAT .
SEMICOLON reduce using rule 15 (TYPE -> FLOAT .)
state 41
(9) DECL -> DIM ID ARRAY AS . TYPE SEMICOLON DECL
(14) TYPE -> . INT
(15) TYPE -> . FLOAT
INT shift and go to state 39
FLOAT shift and go to state 40
TYPE shift and go to state 69
state 42
(11) ARRAY -> ARRAY_RULE ARRAY .
AS reduce using rule 11 (ARRAY -> ARRAY_RULE ARRAY .)
EQUALS reduce using rule 11 (ARRAY -> ARRAY_RULE ARRAY .)
MULTDIV reduce using rule 11 (ARRAY -> ARRAY_RULE ARRAY .)
ADDSUB reduce using rule 11 (ARRAY -> ARRAY_RULE ARRAY .)
RELATIONAL reduce using rule 11 (ARRAY -> ARRAY_RULE ARRAY .)
AND reduce using rule 11 (ARRAY -> ARRAY_RULE ARRAY .)
OR reduce using rule 11 (ARRAY -> ARRAY_RULE ARRAY .)
RBRACKET reduce using rule 11 (ARRAY -> ARRAY_RULE ARRAY .)
RPAREN reduce using rule 11 (ARRAY -> ARRAY_RULE ARRAY .)
SEMICOLON reduce using rule 11 (ARRAY -> ARRAY_RULE ARRAY .)
IF reduce using rule 11 (ARRAY -> ARRAY_RULE ARRAY .)
WHILE reduce using rule 11 (ARRAY -> ARRAY_RULE ARRAY .)
GOSUB reduce using rule 11 (ARRAY -> ARRAY_RULE ARRAY .)
FOR reduce using rule 11 (ARRAY -> ARRAY_RULE ARRAY .)
PRINT reduce using rule 11 (ARRAY -> ARRAY_RULE ARRAY .)
PRINTLN reduce using rule 11 (ARRAY -> ARRAY_RULE ARRAY .)
INPUT reduce using rule 11 (ARRAY -> ARRAY_RULE ARRAY .)
ID reduce using rule 11 (ARRAY -> ARRAY_RULE ARRAY .)
NEXT reduce using rule 11 (ARRAY -> ARRAY_RULE ARRAY .)
state 43
(13) ARRAY_RULE -> LBRACKET EXPRESSION . RBRACKET
RBRACKET shift and go to state 70
state 44
(47) EXPRESSION -> OR_LEVEL .
(48) OR_LEVEL -> OR_LEVEL . OR AND_LEVEL
RBRACKET reduce using rule 47 (EXPRESSION -> OR_LEVEL .)
RPAREN reduce using rule 47 (EXPRESSION -> OR_LEVEL .)
SEMICOLON reduce using rule 47 (EXPRESSION -> OR_LEVEL .)
IF reduce using rule 47 (EXPRESSION -> OR_LEVEL .)
WHILE reduce using rule 47 (EXPRESSION -> OR_LEVEL .)
GOSUB reduce using rule 47 (EXPRESSION -> OR_LEVEL .)
FOR reduce using rule 47 (EXPRESSION -> OR_LEVEL .)
PRINT reduce using rule 47 (EXPRESSION -> OR_LEVEL .)
PRINTLN reduce using rule 47 (EXPRESSION -> OR_LEVEL .)
INPUT reduce using rule 47 (EXPRESSION -> OR_LEVEL .)
ID reduce using rule 47 (EXPRESSION -> OR_LEVEL .)
NEXT reduce using rule 47 (EXPRESSION -> OR_LEVEL .)
OR shift and go to state 71
state 45
(49) OR_LEVEL -> AND_LEVEL .
(50) AND_LEVEL -> AND_LEVEL . AND RELATIONAL_LEVEL
OR reduce using rule 49 (OR_LEVEL -> AND_LEVEL .)
RBRACKET reduce using rule 49 (OR_LEVEL -> AND_LEVEL .)
RPAREN reduce using rule 49 (OR_LEVEL -> AND_LEVEL .)
SEMICOLON reduce using rule 49 (OR_LEVEL -> AND_LEVEL .)
IF reduce using rule 49 (OR_LEVEL -> AND_LEVEL .)
WHILE reduce using rule 49 (OR_LEVEL -> AND_LEVEL .)
GOSUB reduce using rule 49 (OR_LEVEL -> AND_LEVEL .)
FOR reduce using rule 49 (OR_LEVEL -> AND_LEVEL .)
PRINT reduce using rule 49 (OR_LEVEL -> AND_LEVEL .)
PRINTLN reduce using rule 49 (OR_LEVEL -> AND_LEVEL .)
INPUT reduce using rule 49 (OR_LEVEL -> AND_LEVEL .)
ID reduce using rule 49 (OR_LEVEL -> AND_LEVEL .)
NEXT reduce using rule 49 (OR_LEVEL -> AND_LEVEL .)
AND shift and go to state 72
state 46
(51) AND_LEVEL -> RELATIONAL_LEVEL .
(52) RELATIONAL_LEVEL -> RELATIONAL_LEVEL . RELATIONAL ADDSUB_LEVEL
AND reduce using rule 51 (AND_LEVEL -> RELATIONAL_LEVEL .)
OR reduce using rule 51 (AND_LEVEL -> RELATIONAL_LEVEL .)
RBRACKET reduce using rule 51 (AND_LEVEL -> RELATIONAL_LEVEL .)
RPAREN reduce using rule 51 (AND_LEVEL -> RELATIONAL_LEVEL .)
SEMICOLON reduce using rule 51 (AND_LEVEL -> RELATIONAL_LEVEL .)
IF reduce using rule 51 (AND_LEVEL -> RELATIONAL_LEVEL .)
WHILE reduce using rule 51 (AND_LEVEL -> RELATIONAL_LEVEL .)
GOSUB reduce using rule 51 (AND_LEVEL -> RELATIONAL_LEVEL .)
FOR reduce using rule 51 (AND_LEVEL -> RELATIONAL_LEVEL .)
PRINT reduce using rule 51 (AND_LEVEL -> RELATIONAL_LEVEL .)
PRINTLN reduce using rule 51 (AND_LEVEL -> RELATIONAL_LEVEL .)
INPUT reduce using rule 51 (AND_LEVEL -> RELATIONAL_LEVEL .)
ID reduce using rule 51 (AND_LEVEL -> RELATIONAL_LEVEL .)
NEXT reduce using rule 51 (AND_LEVEL -> RELATIONAL_LEVEL .)
RELATIONAL shift and go to state 73
state 47
(53) RELATIONAL_LEVEL -> ADDSUB_LEVEL .
(54) ADDSUB_LEVEL -> ADDSUB_LEVEL . ADDSUB MULTDIV_LEVEL
RELATIONAL reduce using rule 53 (RELATIONAL_LEVEL -> ADDSUB_LEVEL .)
AND reduce using rule 53 (RELATIONAL_LEVEL -> ADDSUB_LEVEL .)
OR reduce using rule 53 (RELATIONAL_LEVEL -> ADDSUB_LEVEL .)
RBRACKET reduce using rule 53 (RELATIONAL_LEVEL -> ADDSUB_LEVEL .)
RPAREN reduce using rule 53 (RELATIONAL_LEVEL -> ADDSUB_LEVEL .)
SEMICOLON reduce using rule 53 (RELATIONAL_LEVEL -> ADDSUB_LEVEL .)
IF reduce using rule 53 (RELATIONAL_LEVEL -> ADDSUB_LEVEL .)
WHILE reduce using rule 53 (RELATIONAL_LEVEL -> ADDSUB_LEVEL .)
GOSUB reduce using rule 53 (RELATIONAL_LEVEL -> ADDSUB_LEVEL .)
FOR reduce using rule 53 (RELATIONAL_LEVEL -> ADDSUB_LEVEL .)
PRINT reduce using rule 53 (RELATIONAL_LEVEL -> ADDSUB_LEVEL .)
PRINTLN reduce using rule 53 (RELATIONAL_LEVEL -> ADDSUB_LEVEL .)
INPUT reduce using rule 53 (RELATIONAL_LEVEL -> ADDSUB_LEVEL .)
ID reduce using rule 53 (RELATIONAL_LEVEL -> ADDSUB_LEVEL .)
NEXT reduce using rule 53 (RELATIONAL_LEVEL -> ADDSUB_LEVEL .)
ADDSUB shift and go to state 74
state 48
(55) ADDSUB_LEVEL -> MULTDIV_LEVEL .
(56) MULTDIV_LEVEL -> MULTDIV_LEVEL . MULTDIV NOT_LEVEL
ADDSUB reduce using rule 55 (ADDSUB_LEVEL -> MULTDIV_LEVEL .)
RELATIONAL reduce using rule 55 (ADDSUB_LEVEL -> MULTDIV_LEVEL .)
AND reduce using rule 55 (ADDSUB_LEVEL -> MULTDIV_LEVEL .)
OR reduce using rule 55 (ADDSUB_LEVEL -> MULTDIV_LEVEL .)
RBRACKET reduce using rule 55 (ADDSUB_LEVEL -> MULTDIV_LEVEL .)
RPAREN reduce using rule 55 (ADDSUB_LEVEL -> MULTDIV_LEVEL .)
SEMICOLON reduce using rule 55 (ADDSUB_LEVEL -> MULTDIV_LEVEL .)
IF reduce using rule 55 (ADDSUB_LEVEL -> MULTDIV_LEVEL .)
WHILE reduce using rule 55 (ADDSUB_LEVEL -> MULTDIV_LEVEL .)
GOSUB reduce using rule 55 (ADDSUB_LEVEL -> MULTDIV_LEVEL .)
FOR reduce using rule 55 (ADDSUB_LEVEL -> MULTDIV_LEVEL .)
PRINT reduce using rule 55 (ADDSUB_LEVEL -> MULTDIV_LEVEL .)
PRINTLN reduce using rule 55 (ADDSUB_LEVEL -> MULTDIV_LEVEL .)
INPUT reduce using rule 55 (ADDSUB_LEVEL -> MULTDIV_LEVEL .)
ID reduce using rule 55 (ADDSUB_LEVEL -> MULTDIV_LEVEL .)
NEXT reduce using rule 55 (ADDSUB_LEVEL -> MULTDIV_LEVEL .)
MULTDIV shift and go to state 75
state 49