-
Notifications
You must be signed in to change notification settings - Fork 1
/
y.output
1022 lines (688 loc) · 18.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
state 0
$accept: .program $end
program: . (1)
. reduce 1 (src line 59)
program goto 1
state 1
$accept: program.$end
program: program.statement
$end accept
TYPE shift 17
IDENTIFY shift 20
IF shift 21
WHILE shift 19
PRINT shift 16
RETURN shift 14
SCAN shift 22
LBRACE shift 18
. error
statement goto 2
block goto 7
refExpression goto 15
assignStatement goto 4
printStatement goto 5
declareStatement goto 6
whileStatement goto 8
scanStatement goto 13
returnStatement goto 3
funcDefineStmt goto 9
funCallStmt goto 10
assignFunCallStmt goto 11
ifStatement goto 12
state 2
program: program statement. (2)
. reduce 2 (src line 64)
state 3
statement: returnStatement. (14)
. reduce 14 (src line 156)
state 4
statement: assignStatement. (15)
. reduce 15 (src line 158)
state 5
statement: printStatement. (16)
. reduce 16 (src line 159)
state 6
statement: declareStatement. (17)
. reduce 17 (src line 160)
state 7
statement: block. (18)
. reduce 18 (src line 161)
state 8
statement: whileStatement. (19)
. reduce 19 (src line 162)
state 9
statement: funcDefineStmt. (20)
. reduce 20 (src line 163)
state 10
statement: funCallStmt. (21)
funCallStmt: funCallStmt.EOS
EOS shift 23
. reduce 21 (src line 164)
state 11
statement: assignFunCallStmt. (22)
. reduce 22 (src line 165)
state 12
statement: ifStatement. (23)
. reduce 23 (src line 166)
state 13
statement: scanStatement. (24)
. reduce 24 (src line 167)
state 14
returnStatement: RETURN.expression EOS
IDENTIFY shift 33
INT_LITERAL shift 28
DOUBLE_LITERAL shift 29
CHAR_LITERAL shift 32
LPARENTHESIS shift 31
. error
expression goto 24
atomExpression goto 27
binaryOrAtomExpression goto 25
refExpression goto 30
unaryExpression goto 26
state 15
assignStatement: refExpression.assign EOS
assignFunCallStmt: refExpression.ASSIGN funCallStmt EOS
ASSIGN shift 35
. error
assign goto 34
state 16
printStatement: PRINT.LPARENTHESIS expression RPARENTHESIS EOS
LPARENTHESIS shift 36
. error
state 17
declareStatement: TYPE.IDENTIFY EOS
declareStatement: TYPE.IDENTIFY assign EOS
declareStatement: TYPE.IDENTIFY LBRACKET INT_LITERAL RBRACKET EOS
assignFunCallStmt: TYPE.IDENTIFY ASSIGN funCallStmt EOS
funcDefineStmt: TYPE.IDENTIFY LPARENTHESIS $$52 defargs RPARENTHESIS $$53 block
IDENTIFY shift 37
. error
state 18
block: LBRACE.stmtList RBRACE
stmtList: . (47)
. reduce 47 (src line 288)
stmtList goto 38
state 19
whileStatement: WHILE.expression block
IDENTIFY shift 33
INT_LITERAL shift 28
DOUBLE_LITERAL shift 29
CHAR_LITERAL shift 32
LPARENTHESIS shift 31
. error
expression goto 39
atomExpression goto 27
binaryOrAtomExpression goto 25
refExpression goto 30
unaryExpression goto 26
state 20
refExpression: IDENTIFY. (31)
refExpression: IDENTIFY.LBRACKET expression RBRACKET
funCallStmt: IDENTIFY.LPARENTHESIS callargs RPARENTHESIS
LBRACKET shift 40
LPARENTHESIS shift 41
. reduce 31 (src line 194)
state 21
ifStatement: IF.expression block
ifStatement: IF.expression block ELSE block
IDENTIFY shift 33
INT_LITERAL shift 28
DOUBLE_LITERAL shift 29
CHAR_LITERAL shift 32
LPARENTHESIS shift 31
. error
expression goto 42
atomExpression goto 27
binaryOrAtomExpression goto 25
refExpression goto 30
unaryExpression goto 26
state 22
scanStatement: SCAN.LPARENTHESIS expression RPARENTHESIS EOS
LPARENTHESIS shift 43
. error
state 23
funCallStmt: funCallStmt EOS. (49)
. reduce 49 (src line 305)
state 24
returnStatement: RETURN expression.EOS
EOS shift 44
. error
state 25
binaryOrAtomExpression: binaryOrAtomExpression.ADD unaryExpression
binaryOrAtomExpression: binaryOrAtomExpression.SUB unaryExpression
binaryOrAtomExpression: binaryOrAtomExpression.MUL unaryExpression
binaryOrAtomExpression: binaryOrAtomExpression.DIV unaryExpression
binaryOrAtomExpression: binaryOrAtomExpression.GT unaryExpression
binaryOrAtomExpression: binaryOrAtomExpression.LT unaryExpression
binaryOrAtomExpression: binaryOrAtomExpression.LE unaryExpression
binaryOrAtomExpression: binaryOrAtomExpression.GE unaryExpression
binaryOrAtomExpression: binaryOrAtomExpression.NE unaryExpression
binaryOrAtomExpression: binaryOrAtomExpression.EQ unaryExpression
expression: binaryOrAtomExpression. (44)
EQ shift 54
NE shift 53
LT shift 50
LE shift 51
GT shift 49
GE shift 52
ADD shift 45
SUB shift 46
MUL shift 47
DIV shift 48
. reduce 44 (src line 270)
state 26
binaryOrAtomExpression: unaryExpression. (33)
. reduce 33 (src line 212)
state 27
unaryExpression: atomExpression. (25)
. reduce 25 (src line 170)
state 28
atomExpression: INT_LITERAL. (26)
. reduce 26 (src line 176)
state 29
atomExpression: DOUBLE_LITERAL. (27)
. reduce 27 (src line 180)
state 30
atomExpression: refExpression. (28)
. reduce 28 (src line 183)
state 31
atomExpression: LPARENTHESIS.expression RPARENTHESIS
IDENTIFY shift 33
INT_LITERAL shift 28
DOUBLE_LITERAL shift 29
CHAR_LITERAL shift 32
LPARENTHESIS shift 31
. error
expression goto 55
atomExpression goto 27
binaryOrAtomExpression goto 25
refExpression goto 30
unaryExpression goto 26
state 32
atomExpression: CHAR_LITERAL. (30)
. reduce 30 (src line 189)
state 33
refExpression: IDENTIFY. (31)
refExpression: IDENTIFY.LBRACKET expression RBRACKET
LBRACKET shift 40
. reduce 31 (src line 194)
state 34
assignStatement: refExpression assign.EOS
EOS shift 56
. error
state 35
assign: ASSIGN.expression
assignFunCallStmt: refExpression ASSIGN.funCallStmt EOS
IDENTIFY shift 20
INT_LITERAL shift 28
DOUBLE_LITERAL shift 29
CHAR_LITERAL shift 32
LPARENTHESIS shift 31
. error
expression goto 57
atomExpression goto 27
binaryOrAtomExpression goto 25
refExpression goto 30
unaryExpression goto 26
funCallStmt goto 58
state 36
printStatement: PRINT LPARENTHESIS.expression RPARENTHESIS EOS
IDENTIFY shift 33
INT_LITERAL shift 28
DOUBLE_LITERAL shift 29
CHAR_LITERAL shift 32
LPARENTHESIS shift 31
. error
expression goto 59
atomExpression goto 27
binaryOrAtomExpression goto 25
refExpression goto 30
unaryExpression goto 26
state 37
declareStatement: TYPE IDENTIFY.EOS
declareStatement: TYPE IDENTIFY.assign EOS
declareStatement: TYPE IDENTIFY.LBRACKET INT_LITERAL RBRACKET EOS
assignFunCallStmt: TYPE IDENTIFY.ASSIGN funCallStmt EOS
funcDefineStmt: TYPE IDENTIFY.LPARENTHESIS $$52 defargs RPARENTHESIS $$53 block
EOS shift 60
ASSIGN shift 63
LBRACKET shift 62
LPARENTHESIS shift 64
. error
assign goto 61
state 38
block: LBRACE stmtList.RBRACE
stmtList: stmtList.statement
TYPE shift 17
IDENTIFY shift 20
IF shift 21
WHILE shift 19
PRINT shift 16
RETURN shift 14
SCAN shift 22
LBRACE shift 18
RBRACE shift 65
. error
statement goto 66
block goto 7
refExpression goto 15
assignStatement goto 4
printStatement goto 5
declareStatement goto 6
whileStatement goto 8
scanStatement goto 13
returnStatement goto 3
funcDefineStmt goto 9
funCallStmt goto 10
assignFunCallStmt goto 11
ifStatement goto 12
state 39
whileStatement: WHILE expression.block
LBRACE shift 18
. error
block goto 67
state 40
refExpression: IDENTIFY LBRACKET.expression RBRACKET
IDENTIFY shift 33
INT_LITERAL shift 28
DOUBLE_LITERAL shift 29
CHAR_LITERAL shift 32
LPARENTHESIS shift 31
. error
expression goto 68
atomExpression goto 27
binaryOrAtomExpression goto 25
refExpression goto 30
unaryExpression goto 26
state 41
funCallStmt: IDENTIFY LPARENTHESIS.callargs RPARENTHESIS
callargs: . (58)
. reduce 58 (src line 369)
callargs goto 69
state 42
ifStatement: IF expression.block
ifStatement: IF expression.block ELSE block
LBRACE shift 18
. error
block goto 70
state 43
scanStatement: SCAN LPARENTHESIS.expression RPARENTHESIS EOS
IDENTIFY shift 33
INT_LITERAL shift 28
DOUBLE_LITERAL shift 29
CHAR_LITERAL shift 32
LPARENTHESIS shift 31
. error
expression goto 71
atomExpression goto 27
binaryOrAtomExpression goto 25
refExpression goto 30
unaryExpression goto 26
state 44
returnStatement: RETURN expression EOS. (13)
. reduce 13 (src line 149)
state 45
binaryOrAtomExpression: binaryOrAtomExpression ADD.unaryExpression
IDENTIFY shift 33
INT_LITERAL shift 28
DOUBLE_LITERAL shift 29
CHAR_LITERAL shift 32
LPARENTHESIS shift 31
. error
atomExpression goto 27
refExpression goto 30
unaryExpression goto 72
state 46
binaryOrAtomExpression: binaryOrAtomExpression SUB.unaryExpression
IDENTIFY shift 33
INT_LITERAL shift 28
DOUBLE_LITERAL shift 29
CHAR_LITERAL shift 32
LPARENTHESIS shift 31
. error
atomExpression goto 27
refExpression goto 30
unaryExpression goto 73
state 47
binaryOrAtomExpression: binaryOrAtomExpression MUL.unaryExpression
IDENTIFY shift 33
INT_LITERAL shift 28
DOUBLE_LITERAL shift 29
CHAR_LITERAL shift 32
LPARENTHESIS shift 31
. error
atomExpression goto 27
refExpression goto 30
unaryExpression goto 74
state 48
binaryOrAtomExpression: binaryOrAtomExpression DIV.unaryExpression
IDENTIFY shift 33
INT_LITERAL shift 28
DOUBLE_LITERAL shift 29
CHAR_LITERAL shift 32
LPARENTHESIS shift 31
. error
atomExpression goto 27
refExpression goto 30
unaryExpression goto 75
state 49
binaryOrAtomExpression: binaryOrAtomExpression GT.unaryExpression
IDENTIFY shift 33
INT_LITERAL shift 28
DOUBLE_LITERAL shift 29
CHAR_LITERAL shift 32
LPARENTHESIS shift 31
. error
atomExpression goto 27
refExpression goto 30
unaryExpression goto 76
state 50
binaryOrAtomExpression: binaryOrAtomExpression LT.unaryExpression
IDENTIFY shift 33
INT_LITERAL shift 28
DOUBLE_LITERAL shift 29
CHAR_LITERAL shift 32
LPARENTHESIS shift 31
. error
atomExpression goto 27
refExpression goto 30
unaryExpression goto 77
state 51
binaryOrAtomExpression: binaryOrAtomExpression LE.unaryExpression
IDENTIFY shift 33
INT_LITERAL shift 28
DOUBLE_LITERAL shift 29
CHAR_LITERAL shift 32
LPARENTHESIS shift 31
. error
atomExpression goto 27
refExpression goto 30
unaryExpression goto 78
state 52
binaryOrAtomExpression: binaryOrAtomExpression GE.unaryExpression
IDENTIFY shift 33
INT_LITERAL shift 28
DOUBLE_LITERAL shift 29
CHAR_LITERAL shift 32
LPARENTHESIS shift 31
. error
atomExpression goto 27
refExpression goto 30
unaryExpression goto 79
state 53
binaryOrAtomExpression: binaryOrAtomExpression NE.unaryExpression
IDENTIFY shift 33
INT_LITERAL shift 28
DOUBLE_LITERAL shift 29
CHAR_LITERAL shift 32
LPARENTHESIS shift 31
. error
atomExpression goto 27
refExpression goto 30
unaryExpression goto 80
state 54
binaryOrAtomExpression: binaryOrAtomExpression EQ.unaryExpression
IDENTIFY shift 33
INT_LITERAL shift 28
DOUBLE_LITERAL shift 29
CHAR_LITERAL shift 32
LPARENTHESIS shift 31
. error
atomExpression goto 27
refExpression goto 30
unaryExpression goto 81
state 55
atomExpression: LPARENTHESIS expression.RPARENTHESIS
RPARENTHESIS shift 82
. error
state 56
assignStatement: refExpression assign EOS. (7)
. reduce 7 (src line 99)
state 57
assign: ASSIGN expression. (6)
. reduce 6 (src line 93)
state 58
funCallStmt: funCallStmt.EOS
assignFunCallStmt: refExpression ASSIGN funCallStmt.EOS
EOS shift 83
. error
state 59
printStatement: PRINT LPARENTHESIS expression.RPARENTHESIS EOS
RPARENTHESIS shift 84
. error
state 60
declareStatement: TYPE IDENTIFY EOS. (3)
. reduce 3 (src line 71)
state 61
declareStatement: TYPE IDENTIFY assign.EOS
EOS shift 85
. error
state 62
declareStatement: TYPE IDENTIFY LBRACKET.INT_LITERAL RBRACKET EOS
INT_LITERAL shift 86
. error
state 63
assign: ASSIGN.expression
assignFunCallStmt: TYPE IDENTIFY ASSIGN.funCallStmt EOS
IDENTIFY shift 20
INT_LITERAL shift 28
DOUBLE_LITERAL shift 29
CHAR_LITERAL shift 32
LPARENTHESIS shift 31
. error
expression goto 57
atomExpression goto 27
binaryOrAtomExpression goto 25
refExpression goto 30
unaryExpression goto 26
funCallStmt goto 87
state 64
funcDefineStmt: TYPE IDENTIFY LPARENTHESIS.$$52 defargs RPARENTHESIS $$53 block
$$52: . (52)
. reduce 52 (src line 327)
$$52 goto 88
state 65
block: LBRACE stmtList RBRACE. (45)
. reduce 45 (src line 276)
state 66
stmtList: stmtList statement. (46)
. reduce 46 (src line 282)
state 67
whileStatement: WHILE expression block. (12)
. reduce 12 (src line 139)
state 68
refExpression: IDENTIFY LBRACKET expression.RBRACKET
RBRACKET shift 89
. error
state 69
funCallStmt: IDENTIFY LPARENTHESIS callargs.RPARENTHESIS
callargs: callargs.expression
callargs: callargs.COMMA expression
IDENTIFY shift 33
INT_LITERAL shift 28
DOUBLE_LITERAL shift 29
CHAR_LITERAL shift 32
COMMA shift 92
LPARENTHESIS shift 31
RPARENTHESIS shift 90
. error
expression goto 91
atomExpression goto 27
binaryOrAtomExpression goto 25
refExpression goto 30
unaryExpression goto 26
state 70
ifStatement: IF expression block. (10)
ifStatement: IF expression block.ELSE block
ELSE shift 93
. reduce 10 (src line 121)
state 71
scanStatement: SCAN LPARENTHESIS expression.RPARENTHESIS EOS
RPARENTHESIS shift 94
. error
state 72
binaryOrAtomExpression: binaryOrAtomExpression ADD unaryExpression. (34)
. reduce 34 (src line 217)
state 73
binaryOrAtomExpression: binaryOrAtomExpression SUB unaryExpression. (35)
. reduce 35 (src line 222)
state 74
binaryOrAtomExpression: binaryOrAtomExpression MUL unaryExpression. (36)
. reduce 36 (src line 228)
state 75
binaryOrAtomExpression: binaryOrAtomExpression DIV unaryExpression. (37)
. reduce 37 (src line 233)
state 76
binaryOrAtomExpression: binaryOrAtomExpression GT unaryExpression. (38)
. reduce 38 (src line 238)
state 77
binaryOrAtomExpression: binaryOrAtomExpression LT unaryExpression. (39)
. reduce 39 (src line 243)
state 78
binaryOrAtomExpression: binaryOrAtomExpression LE unaryExpression. (40)
. reduce 40 (src line 248)
state 79
binaryOrAtomExpression: binaryOrAtomExpression GE unaryExpression. (41)
. reduce 41 (src line 253)
state 80
binaryOrAtomExpression: binaryOrAtomExpression NE unaryExpression. (42)
. reduce 42 (src line 258)
state 81
binaryOrAtomExpression: binaryOrAtomExpression EQ unaryExpression. (43)
. reduce 43 (src line 263)
state 82
atomExpression: LPARENTHESIS expression RPARENTHESIS. (29)
. reduce 29 (src line 186)
state 83
funCallStmt: funCallStmt EOS. (49)
assignFunCallStmt: refExpression ASSIGN funCallStmt EOS. (50)
EOS reduce 49 (src line 305)
. reduce 50 (src line 310)
state 84
printStatement: PRINT LPARENTHESIS expression RPARENTHESIS.EOS
EOS shift 95
. error
state 85
declareStatement: TYPE IDENTIFY assign EOS. (4)
. reduce 4 (src line 77)
state 86
declareStatement: TYPE IDENTIFY LBRACKET INT_LITERAL.RBRACKET EOS
RBRACKET shift 96
. error
state 87
funCallStmt: funCallStmt.EOS
assignFunCallStmt: TYPE IDENTIFY ASSIGN funCallStmt.EOS
EOS shift 97
. error
state 88
funcDefineStmt: TYPE IDENTIFY LPARENTHESIS $$52.defargs RPARENTHESIS $$53 block
defargs: . (55)
. reduce 55 (src line 348)
defargs goto 98
state 89
refExpression: IDENTIFY LBRACKET expression RBRACKET. (32)
. reduce 32 (src line 202)
state 90
funCallStmt: IDENTIFY LPARENTHESIS callargs RPARENTHESIS. (48)
. reduce 48 (src line 295)
state 91
callargs: callargs expression. (59)
. reduce 59 (src line 373)
state 92
callargs: callargs COMMA.expression
IDENTIFY shift 33
INT_LITERAL shift 28
DOUBLE_LITERAL shift 29
CHAR_LITERAL shift 32
LPARENTHESIS shift 31
. error
expression goto 99
atomExpression goto 27
binaryOrAtomExpression goto 25
refExpression goto 30
unaryExpression goto 26
state 93
ifStatement: IF expression block ELSE.block
LBRACE shift 18
. error
block goto 100
state 94
scanStatement: SCAN LPARENTHESIS expression RPARENTHESIS.EOS
EOS shift 101
. error
state 95
printStatement: PRINT LPARENTHESIS expression RPARENTHESIS EOS. (8)
. reduce 8 (src line 107)
state 96
declareStatement: TYPE IDENTIFY LBRACKET INT_LITERAL RBRACKET.EOS
EOS shift 102
. error
state 97
funCallStmt: funCallStmt EOS. (49)
assignFunCallStmt: TYPE IDENTIFY ASSIGN funCallStmt EOS. (51)
EOS reduce 49 (src line 305)
. reduce 51 (src line 317)
state 98
funcDefineStmt: TYPE IDENTIFY LPARENTHESIS $$52 defargs.RPARENTHESIS $$53 block
defargs: defargs.TYPE IDENTIFY
defargs: defargs.COMMA TYPE IDENTIFY
TYPE shift 104
COMMA shift 105
RPARENTHESIS shift 103
. error
state 99
callargs: callargs COMMA expression. (60)
. reduce 60 (src line 378)
state 100
ifStatement: IF expression block ELSE block. (11)
. reduce 11 (src line 129)
state 101
scanStatement: SCAN LPARENTHESIS expression RPARENTHESIS EOS. (9)
. reduce 9 (src line 114)
state 102
declareStatement: TYPE IDENTIFY LBRACKET INT_LITERAL RBRACKET EOS. (5)
. reduce 5 (src line 86)
state 103
funcDefineStmt: TYPE IDENTIFY LPARENTHESIS $$52 defargs RPARENTHESIS.$$53 block
$$53: . (53)
. reduce 53 (src line 328)
$$53 goto 106
state 104
defargs: defargs TYPE.IDENTIFY
IDENTIFY shift 107
. error
state 105
defargs: defargs COMMA.TYPE IDENTIFY
TYPE shift 108
. error
state 106
funcDefineStmt: TYPE IDENTIFY LPARENTHESIS $$52 defargs RPARENTHESIS $$53.block
LBRACE shift 18
. error
block goto 109
state 107
defargs: defargs TYPE IDENTIFY. (56)
. reduce 56 (src line 352)
state 108
defargs: defargs COMMA TYPE.IDENTIFY
IDENTIFY shift 110
. error
state 109
funcDefineStmt: TYPE IDENTIFY LPARENTHESIS $$52 defargs RPARENTHESIS $$53 block. (54)