-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathy.output
2915 lines (2201 loc) · 73.5 KB
/
y.output
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
Grammar
0 $accept: program $end
1 program: exp
2 exp: lvalue
3 | NIL
4 | LPAREN RPAREN
5 | INT
6 | STRING
7 | CMT
8 | LPAREN expseq RPAREN
9 | MINUS exp
10 | func_call_exp
11 | arith_exp
12 | comp_exp
13 | bool_exp
14 | record_create_exp
15 | array_create_exp
16 | lvalue ASSIGN exp
17 | if_exp
18 | loop_exp
19 | BREAK
20 | LET decs IN expseq END
21 expseq: exp
22 | exp SEMICOLON expseq
23 if_exp: IF exp THEN exp
24 | IF exp THEN exp ELSE exp
25 loop_exp: WHILE exp DO exp
26 | FOR ID ASSIGN exp TO exp DO exp
27 func_call_exp: ID LPAREN RPAREN
28 | ID LPAREN func_call_param_exp RPAREN
29 func_call_param_exp: exp
30 | exp COMMA func_call_param_exp
31 arith_exp: exp PLUS exp
32 | exp MINUS exp
33 | exp TIMES exp
34 | exp DIVIDE exp
35 comp_exp: exp EQ exp
36 | exp NEQ exp
37 | exp LT exp
38 | exp LE exp
39 | exp GT exp
40 | exp GE exp
41 bool_exp: exp AND exp
42 | exp OR exp
43 record_create_exp: ID LBRACE RBRACE
44 | ID LBRACE record_create_exp_no_empty RBRACE
45 record_create_exp_no_empty: ID EQ exp
46 | ID EQ exp COMMA record_create_exp_no_empty
47 array_create_exp: ID LBRACK exp RBRACK OF exp
48 decs: /* empty */
49 | dec decs
50 dec: typedeclist
51 | vardec
52 | fundeclist
53 typedeclist: typedec
54 | typedec typedeclist
55 typedec: TYPE ID EQ ty
56 ty: ID
57 | LBRACE tyfields RBRACE
58 | ARRAY OF ID
59 tyfields: /* empty */
60 | tyfields_no_empty
61 tyfields_no_empty: tyfield
62 | tyfield COMMA tyfields_no_empty
63 tyfield: ID COLON ID
64 vardec: VAR ID ASSIGN exp
65 | VAR ID COLON ID ASSIGN exp
66 fundeclist: fundec
67 | fundec fundeclist
68 fundec: FUNCTION ID LPAREN tyfields RPAREN EQ exp
69 | FUNCTION ID LPAREN tyfields RPAREN COLON ID EQ exp
70 lvalue: ID
71 | lvalue DOT ID
72 | ID LBRACK exp RBRACK
73 | lvalue LBRACK exp RBRACK
Terminals, with rules where they appear
$end (0) 0
error (256)
ID (258) 26 27 28 43 44 45 46 47 55 56 58 63 64 65 68 69 70 71 72
STRING (259) 6
INT (260) 5
COMMA (261) 30 46 62
COLON (262) 63 65 69
SEMICOLON (263) 22
LPAREN (264) 4 8 27 28 68 69
RPAREN (265) 4 8 27 28 68 69
LBRACK (266) 47 72 73
RBRACK (267) 47 72 73
LBRACE (268) 43 44 57
RBRACE (269) 43 44 57
DOT (270) 71
PLUS (271) 31
MINUS (272) 9 32
TIMES (273) 33
DIVIDE (274) 34
EQ (275) 35 45 46 55 68 69
NEQ (276) 36
LT (277) 37
LE (278) 38
GT (279) 39
GE (280) 40
AND (281) 41
OR (282) 42
ASSIGN (283) 16 26 64 65
ARRAY (284) 58
IF (285) 23 24
THEN (286) 23 24
ELSE (287) 24
WHILE (288) 25
FOR (289) 26
TO (290) 26
DO (291) 25 26
LET (292) 20
IN (293) 20
END (294) 20
OF (295) 47 58
BREAK (296) 19
NIL (297) 3
FUNCTION (298) 68 69
VAR (299) 64 65
TYPE (300) 55
CMT (301) 7
LOW (302)
UMINUS (303)
Nonterminals, with rules where they appear
$accept (49)
on left: 0
program (50)
on left: 1, on right: 0
exp (51)
on left: 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20, on right:
1 9 16 21 22 23 24 25 26 29 30 31 32 33 34 35 36 37 38 39 40 41
42 45 46 47 64 65 68 69 72 73
expseq (52)
on left: 21 22, on right: 8 20 22
if_exp (53)
on left: 23 24, on right: 17
loop_exp (54)
on left: 25 26, on right: 18
func_call_exp (55)
on left: 27 28, on right: 10
func_call_param_exp (56)
on left: 29 30, on right: 28 30
arith_exp (57)
on left: 31 32 33 34, on right: 11
comp_exp (58)
on left: 35 36 37 38 39 40, on right: 12
bool_exp (59)
on left: 41 42, on right: 13
record_create_exp (60)
on left: 43 44, on right: 14
record_create_exp_no_empty (61)
on left: 45 46, on right: 44 46
array_create_exp (62)
on left: 47, on right: 15
decs (63)
on left: 48 49, on right: 20 49
dec (64)
on left: 50 51 52, on right: 49
typedeclist (65)
on left: 53 54, on right: 50 54
typedec (66)
on left: 55, on right: 53 54
ty (67)
on left: 56 57 58, on right: 55
tyfields (68)
on left: 59 60, on right: 57 68 69
tyfields_no_empty (69)
on left: 61 62, on right: 60 62
tyfield (70)
on left: 63, on right: 61 62
vardec (71)
on left: 64 65, on right: 51
fundeclist (72)
on left: 66 67, on right: 52 67
fundec (73)
on left: 68 69, on right: 66 67
lvalue (74)
on left: 70 71 72 73, on right: 2 16 71 73
state 0
0 $accept: . program $end
ID shift, and go to state 1
STRING shift, and go to state 2
INT shift, and go to state 3
LPAREN shift, and go to state 4
MINUS shift, and go to state 5
IF shift, and go to state 6
WHILE shift, and go to state 7
FOR shift, and go to state 8
LET shift, and go to state 9
BREAK shift, and go to state 10
NIL shift, and go to state 11
CMT shift, and go to state 12
program go to state 13
exp go to state 14
if_exp go to state 15
loop_exp go to state 16
func_call_exp go to state 17
arith_exp go to state 18
comp_exp go to state 19
bool_exp go to state 20
record_create_exp go to state 21
array_create_exp go to state 22
lvalue go to state 23
state 1
27 func_call_exp: ID . LPAREN RPAREN
28 | ID . LPAREN func_call_param_exp RPAREN
43 record_create_exp: ID . LBRACE RBRACE
44 | ID . LBRACE record_create_exp_no_empty RBRACE
47 array_create_exp: ID . LBRACK exp RBRACK OF exp
70 lvalue: ID .
72 | ID . LBRACK exp RBRACK
LPAREN shift, and go to state 24
LBRACK shift, and go to state 25
LBRACE shift, and go to state 26
$default reduce using rule 70 (lvalue)
state 2
6 exp: STRING .
$default reduce using rule 6 (exp)
state 3
5 exp: INT .
$default reduce using rule 5 (exp)
state 4
4 exp: LPAREN . RPAREN
8 | LPAREN . expseq RPAREN
ID shift, and go to state 1
STRING shift, and go to state 2
INT shift, and go to state 3
LPAREN shift, and go to state 4
RPAREN shift, and go to state 27
MINUS shift, and go to state 5
IF shift, and go to state 6
WHILE shift, and go to state 7
FOR shift, and go to state 8
LET shift, and go to state 9
BREAK shift, and go to state 10
NIL shift, and go to state 11
CMT shift, and go to state 12
exp go to state 28
expseq go to state 29
if_exp go to state 15
loop_exp go to state 16
func_call_exp go to state 17
arith_exp go to state 18
comp_exp go to state 19
bool_exp go to state 20
record_create_exp go to state 21
array_create_exp go to state 22
lvalue go to state 23
state 5
9 exp: MINUS . exp
ID shift, and go to state 1
STRING shift, and go to state 2
INT shift, and go to state 3
LPAREN shift, and go to state 4
MINUS shift, and go to state 5
IF shift, and go to state 6
WHILE shift, and go to state 7
FOR shift, and go to state 8
LET shift, and go to state 9
BREAK shift, and go to state 10
NIL shift, and go to state 11
CMT shift, and go to state 12
exp go to state 30
if_exp go to state 15
loop_exp go to state 16
func_call_exp go to state 17
arith_exp go to state 18
comp_exp go to state 19
bool_exp go to state 20
record_create_exp go to state 21
array_create_exp go to state 22
lvalue go to state 23
state 6
23 if_exp: IF . exp THEN exp
24 | IF . exp THEN exp ELSE exp
ID shift, and go to state 1
STRING shift, and go to state 2
INT shift, and go to state 3
LPAREN shift, and go to state 4
MINUS shift, and go to state 5
IF shift, and go to state 6
WHILE shift, and go to state 7
FOR shift, and go to state 8
LET shift, and go to state 9
BREAK shift, and go to state 10
NIL shift, and go to state 11
CMT shift, and go to state 12
exp go to state 31
if_exp go to state 15
loop_exp go to state 16
func_call_exp go to state 17
arith_exp go to state 18
comp_exp go to state 19
bool_exp go to state 20
record_create_exp go to state 21
array_create_exp go to state 22
lvalue go to state 23
state 7
25 loop_exp: WHILE . exp DO exp
ID shift, and go to state 1
STRING shift, and go to state 2
INT shift, and go to state 3
LPAREN shift, and go to state 4
MINUS shift, and go to state 5
IF shift, and go to state 6
WHILE shift, and go to state 7
FOR shift, and go to state 8
LET shift, and go to state 9
BREAK shift, and go to state 10
NIL shift, and go to state 11
CMT shift, and go to state 12
exp go to state 32
if_exp go to state 15
loop_exp go to state 16
func_call_exp go to state 17
arith_exp go to state 18
comp_exp go to state 19
bool_exp go to state 20
record_create_exp go to state 21
array_create_exp go to state 22
lvalue go to state 23
state 8
26 loop_exp: FOR . ID ASSIGN exp TO exp DO exp
ID shift, and go to state 33
state 9
20 exp: LET . decs IN expseq END
FUNCTION shift, and go to state 34
VAR shift, and go to state 35
TYPE shift, and go to state 36
$default reduce using rule 48 (decs)
decs go to state 37
dec go to state 38
typedeclist go to state 39
typedec go to state 40
vardec go to state 41
fundeclist go to state 42
fundec go to state 43
state 10
19 exp: BREAK .
$default reduce using rule 19 (exp)
state 11
3 exp: NIL .
$default reduce using rule 3 (exp)
state 12
7 exp: CMT .
$default reduce using rule 7 (exp)
state 13
0 $accept: program . $end
$end shift, and go to state 44
state 14
1 program: exp .
31 arith_exp: exp . PLUS exp
32 | exp . MINUS exp
33 | exp . TIMES exp
34 | exp . DIVIDE exp
35 comp_exp: exp . EQ exp
36 | exp . NEQ exp
37 | exp . LT exp
38 | exp . LE exp
39 | exp . GT exp
40 | exp . GE exp
41 bool_exp: exp . AND exp
42 | exp . OR exp
PLUS shift, and go to state 45
MINUS shift, and go to state 46
TIMES shift, and go to state 47
DIVIDE shift, and go to state 48
EQ shift, and go to state 49
NEQ shift, and go to state 50
LT shift, and go to state 51
LE shift, and go to state 52
GT shift, and go to state 53
GE shift, and go to state 54
AND shift, and go to state 55
OR shift, and go to state 56
$default reduce using rule 1 (program)
state 15
17 exp: if_exp .
$default reduce using rule 17 (exp)
state 16
18 exp: loop_exp .
$default reduce using rule 18 (exp)
state 17
10 exp: func_call_exp .
$default reduce using rule 10 (exp)
state 18
11 exp: arith_exp .
$default reduce using rule 11 (exp)
state 19
12 exp: comp_exp .
$default reduce using rule 12 (exp)
state 20
13 exp: bool_exp .
$default reduce using rule 13 (exp)
state 21
14 exp: record_create_exp .
$default reduce using rule 14 (exp)
state 22
15 exp: array_create_exp .
$default reduce using rule 15 (exp)
state 23
2 exp: lvalue .
16 | lvalue . ASSIGN exp
71 lvalue: lvalue . DOT ID
73 | lvalue . LBRACK exp RBRACK
LBRACK shift, and go to state 57
DOT shift, and go to state 58
ASSIGN shift, and go to state 59
$default reduce using rule 2 (exp)
state 24
27 func_call_exp: ID LPAREN . RPAREN
28 | ID LPAREN . func_call_param_exp RPAREN
ID shift, and go to state 1
STRING shift, and go to state 2
INT shift, and go to state 3
LPAREN shift, and go to state 4
RPAREN shift, and go to state 60
MINUS shift, and go to state 5
IF shift, and go to state 6
WHILE shift, and go to state 7
FOR shift, and go to state 8
LET shift, and go to state 9
BREAK shift, and go to state 10
NIL shift, and go to state 11
CMT shift, and go to state 12
exp go to state 61
if_exp go to state 15
loop_exp go to state 16
func_call_exp go to state 17
func_call_param_exp go to state 62
arith_exp go to state 18
comp_exp go to state 19
bool_exp go to state 20
record_create_exp go to state 21
array_create_exp go to state 22
lvalue go to state 23
state 25
47 array_create_exp: ID LBRACK . exp RBRACK OF exp
72 lvalue: ID LBRACK . exp RBRACK
ID shift, and go to state 1
STRING shift, and go to state 2
INT shift, and go to state 3
LPAREN shift, and go to state 4
MINUS shift, and go to state 5
IF shift, and go to state 6
WHILE shift, and go to state 7
FOR shift, and go to state 8
LET shift, and go to state 9
BREAK shift, and go to state 10
NIL shift, and go to state 11
CMT shift, and go to state 12
exp go to state 63
if_exp go to state 15
loop_exp go to state 16
func_call_exp go to state 17
arith_exp go to state 18
comp_exp go to state 19
bool_exp go to state 20
record_create_exp go to state 21
array_create_exp go to state 22
lvalue go to state 23
state 26
43 record_create_exp: ID LBRACE . RBRACE
44 | ID LBRACE . record_create_exp_no_empty RBRACE
ID shift, and go to state 64
RBRACE shift, and go to state 65
record_create_exp_no_empty go to state 66
state 27
4 exp: LPAREN RPAREN .
$default reduce using rule 4 (exp)
state 28
21 expseq: exp .
22 | exp . SEMICOLON expseq
31 arith_exp: exp . PLUS exp
32 | exp . MINUS exp
33 | exp . TIMES exp
34 | exp . DIVIDE exp
35 comp_exp: exp . EQ exp
36 | exp . NEQ exp
37 | exp . LT exp
38 | exp . LE exp
39 | exp . GT exp
40 | exp . GE exp
41 bool_exp: exp . AND exp
42 | exp . OR exp
SEMICOLON shift, and go to state 67
PLUS shift, and go to state 45
MINUS shift, and go to state 46
TIMES shift, and go to state 47
DIVIDE shift, and go to state 48
EQ shift, and go to state 49
NEQ shift, and go to state 50
LT shift, and go to state 51
LE shift, and go to state 52
GT shift, and go to state 53
GE shift, and go to state 54
AND shift, and go to state 55
OR shift, and go to state 56
$default reduce using rule 21 (expseq)
state 29
8 exp: LPAREN expseq . RPAREN
RPAREN shift, and go to state 68
state 30
9 exp: MINUS exp .
31 arith_exp: exp . PLUS exp
32 | exp . MINUS exp
33 | exp . TIMES exp
34 | exp . DIVIDE exp
35 comp_exp: exp . EQ exp
36 | exp . NEQ exp
37 | exp . LT exp
38 | exp . LE exp
39 | exp . GT exp
40 | exp . GE exp
41 bool_exp: exp . AND exp
42 | exp . OR exp
$default reduce using rule 9 (exp)
state 31
23 if_exp: IF exp . THEN exp
24 | IF exp . THEN exp ELSE exp
31 arith_exp: exp . PLUS exp
32 | exp . MINUS exp
33 | exp . TIMES exp
34 | exp . DIVIDE exp
35 comp_exp: exp . EQ exp
36 | exp . NEQ exp
37 | exp . LT exp
38 | exp . LE exp
39 | exp . GT exp
40 | exp . GE exp
41 bool_exp: exp . AND exp
42 | exp . OR exp
PLUS shift, and go to state 45
MINUS shift, and go to state 46
TIMES shift, and go to state 47
DIVIDE shift, and go to state 48
EQ shift, and go to state 49
NEQ shift, and go to state 50
LT shift, and go to state 51
LE shift, and go to state 52
GT shift, and go to state 53
GE shift, and go to state 54
AND shift, and go to state 55
OR shift, and go to state 56
THEN shift, and go to state 69
state 32
25 loop_exp: WHILE exp . DO exp
31 arith_exp: exp . PLUS exp
32 | exp . MINUS exp
33 | exp . TIMES exp
34 | exp . DIVIDE exp
35 comp_exp: exp . EQ exp
36 | exp . NEQ exp
37 | exp . LT exp
38 | exp . LE exp
39 | exp . GT exp
40 | exp . GE exp
41 bool_exp: exp . AND exp
42 | exp . OR exp
PLUS shift, and go to state 45
MINUS shift, and go to state 46
TIMES shift, and go to state 47
DIVIDE shift, and go to state 48
EQ shift, and go to state 49
NEQ shift, and go to state 50
LT shift, and go to state 51
LE shift, and go to state 52
GT shift, and go to state 53
GE shift, and go to state 54
AND shift, and go to state 55
OR shift, and go to state 56
DO shift, and go to state 70
state 33
26 loop_exp: FOR ID . ASSIGN exp TO exp DO exp
ASSIGN shift, and go to state 71
state 34
68 fundec: FUNCTION . ID LPAREN tyfields RPAREN EQ exp
69 | FUNCTION . ID LPAREN tyfields RPAREN COLON ID EQ exp
ID shift, and go to state 72
state 35
64 vardec: VAR . ID ASSIGN exp
65 | VAR . ID COLON ID ASSIGN exp
ID shift, and go to state 73
state 36
55 typedec: TYPE . ID EQ ty
ID shift, and go to state 74
state 37
20 exp: LET decs . IN expseq END
IN shift, and go to state 75
state 38
49 decs: dec . decs
FUNCTION shift, and go to state 34
VAR shift, and go to state 35
TYPE shift, and go to state 36
$default reduce using rule 48 (decs)
decs go to state 76
dec go to state 38
typedeclist go to state 39
typedec go to state 40
vardec go to state 41
fundeclist go to state 42
fundec go to state 43
state 39
50 dec: typedeclist .
$default reduce using rule 50 (dec)
state 40
53 typedeclist: typedec .
54 | typedec . typedeclist
TYPE shift, and go to state 36
$default reduce using rule 53 (typedeclist)
typedeclist go to state 77
typedec go to state 40
state 41
51 dec: vardec .
$default reduce using rule 51 (dec)
state 42
52 dec: fundeclist .
$default reduce using rule 52 (dec)
state 43
66 fundeclist: fundec .
67 | fundec . fundeclist
FUNCTION shift, and go to state 34
$default reduce using rule 66 (fundeclist)
fundeclist go to state 78
fundec go to state 43
state 44
0 $accept: program $end .
$default accept
state 45
31 arith_exp: exp PLUS . exp
ID shift, and go to state 1
STRING shift, and go to state 2
INT shift, and go to state 3
LPAREN shift, and go to state 4
MINUS shift, and go to state 5
IF shift, and go to state 6
WHILE shift, and go to state 7
FOR shift, and go to state 8
LET shift, and go to state 9
BREAK shift, and go to state 10
NIL shift, and go to state 11
CMT shift, and go to state 12
exp go to state 79
if_exp go to state 15
loop_exp go to state 16
func_call_exp go to state 17
arith_exp go to state 18
comp_exp go to state 19
bool_exp go to state 20
record_create_exp go to state 21
array_create_exp go to state 22
lvalue go to state 23
state 46
32 arith_exp: exp MINUS . exp
ID shift, and go to state 1
STRING shift, and go to state 2
INT shift, and go to state 3
LPAREN shift, and go to state 4
MINUS shift, and go to state 5
IF shift, and go to state 6
WHILE shift, and go to state 7
FOR shift, and go to state 8
LET shift, and go to state 9
BREAK shift, and go to state 10
NIL shift, and go to state 11
CMT shift, and go to state 12
exp go to state 80
if_exp go to state 15
loop_exp go to state 16
func_call_exp go to state 17
arith_exp go to state 18
comp_exp go to state 19
bool_exp go to state 20
record_create_exp go to state 21
array_create_exp go to state 22
lvalue go to state 23
state 47
33 arith_exp: exp TIMES . exp
ID shift, and go to state 1
STRING shift, and go to state 2
INT shift, and go to state 3
LPAREN shift, and go to state 4
MINUS shift, and go to state 5
IF shift, and go to state 6
WHILE shift, and go to state 7
FOR shift, and go to state 8
LET shift, and go to state 9
BREAK shift, and go to state 10
NIL shift, and go to state 11
CMT shift, and go to state 12
exp go to state 81
if_exp go to state 15
loop_exp go to state 16
func_call_exp go to state 17
arith_exp go to state 18
comp_exp go to state 19
bool_exp go to state 20
record_create_exp go to state 21
array_create_exp go to state 22
lvalue go to state 23
state 48
34 arith_exp: exp DIVIDE . exp
ID shift, and go to state 1
STRING shift, and go to state 2
INT shift, and go to state 3
LPAREN shift, and go to state 4
MINUS shift, and go to state 5
IF shift, and go to state 6
WHILE shift, and go to state 7
FOR shift, and go to state 8
LET shift, and go to state 9
BREAK shift, and go to state 10
NIL shift, and go to state 11
CMT shift, and go to state 12
exp go to state 82
if_exp go to state 15
loop_exp go to state 16
func_call_exp go to state 17
arith_exp go to state 18
comp_exp go to state 19
bool_exp go to state 20
record_create_exp go to state 21
array_create_exp go to state 22
lvalue go to state 23
state 49
35 comp_exp: exp EQ . exp
ID shift, and go to state 1
STRING shift, and go to state 2
INT shift, and go to state 3
LPAREN shift, and go to state 4
MINUS shift, and go to state 5
IF shift, and go to state 6
WHILE shift, and go to state 7
FOR shift, and go to state 8
LET shift, and go to state 9
BREAK shift, and go to state 10
NIL shift, and go to state 11
CMT shift, and go to state 12
exp go to state 83
if_exp go to state 15
loop_exp go to state 16
func_call_exp go to state 17