-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathy.output
More file actions
2043 lines (1222 loc) · 38.9 KB
/
y.output
File metadata and controls
2043 lines (1222 loc) · 38.9 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
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
Nonterminals useless in grammar
assign_e
Terminals unused in grammar
DECIMAL
CONSTANT
STRING_LITERAL
AND_OP
OR_OP
MUL_ASSIGN
DIV_ASSIGN
MOD
ADD_ASSIGN
SUB_ASSIGN
TYPEDEF
CHAR
CONST
GOTO
CONTINUE
BREAK
RETURN
SOP
COL
BIT_AND
NOT
EXP
BIT_OR
QUE
NE
Rules useless in parser due to conflicts
65 $@19: %empty
State 37 conflicts: 1 shift/reduce
State 53 conflicts: 1 reduce/reduce
State 65 conflicts: 1 shift/reduce
State 66 conflicts: 1 shift/reduce
State 98 conflicts: 1 shift/reduce
State 99 conflicts: 1 shift/reduce
State 100 conflicts: 1 shift/reduce
State 101 conflicts: 1 shift/reduce
State 102 conflicts: 1 shift/reduce
State 103 conflicts: 1 shift/reduce
State 104 conflicts: 1 shift/reduce
State 105 conflicts: 1 shift/reduce
State 106 conflicts: 1 shift/reduce
State 107 conflicts: 1 shift/reduce
State 109 conflicts: 1 shift/reduce
State 132 conflicts: 1 shift/reduce
State 133 conflicts: 1 shift/reduce
State 136 conflicts: 1 shift/reduce
State 137 conflicts: 1 shift/reduce
State 138 conflicts: 1 shift/reduce
State 142 conflicts: 1 shift/reduce
State 147 conflicts: 1 shift/reduce
State 151 conflicts: 1 shift/reduce
State 157 conflicts: 1 shift/reduce
Grammar
0 $accept: S $end
1 S: compilation_unit
2 compilation_unit: package_statement import_statement class_stmt
3 package_statement: PACKAGE IDENTIFIER SEMC
4 import_statement: IMPORT IDENTIFIER DOT MUL SEMC
5 | IMPORT class_name SEMC
6 | IMPORT MUL SEMC
7 | %empty
8 class_name: IDENTIFIER
9 class_stmt: PUBLIC CLASS class_name OF main_method CF
10 main_method: PUBLIC STATIC VOID MAIN OC STRING OS FS ARGS CC OF sl CF
11 sl: sl s1
12 | %empty
13 s1: variable_declaration SEMC
14 | expression SEMC
15 | if_stmt
16 | for_stmt
17 | SEMC
18 variable_declaration: dtypes
19 dtypes: INT ids1
20 | FLOAT ids2
21 | BOOLEAN ids3
22 $@1: %empty
23 $@2: %empty
24 ids1: IDENTIFIER $@1 EQ $@2 arithm_e
25 | ids1 COMMA IDENTIFIER
26 | IDENTIFIER
27 $@3: %empty
28 $@4: %empty
29 ids2: IDENTIFIER $@3 EQ $@4 arithm_e
30 | ids2 COMMA IDENTIFIER
31 | IDENTIFIER
32 $@5: %empty
33 $@6: %empty
34 ids3: IDENTIFIER $@5 EQ $@6 rel_e
35 | ids3 COMMA IDENTIFIER
36 | IDENTIFIER
37 expression: rel_e
38 | arithm_e
39 $@7: %empty
40 rel_e: arithm_e LT $@7 arithm_e
41 $@8: %empty
42 rel_e: arithm_e GT $@8 arithm_e
43 $@9: %empty
44 rel_e: arithm_e LE $@9 arithm_e
45 $@10: %empty
46 rel_e: arithm_e GE $@10 arithm_e
47 $@11: %empty
48 rel_e: arithm_e DEQ $@11 arithm_e
49 $@12: %empty
50 rel_e: arithm_e NE_OP $@12 arithm_e
51 $@13: %empty
52 $@14: %empty
53 rel_e: IDENTIFIER $@13 EQ $@14 rel_e
54 | TRUE1
55 | FALSE1
56 | arithm_e
57 $@15: %empty
58 arithm_e: arithm_e ADD $@15 arithm_e
59 $@16: %empty
60 arithm_e: arithm_e SUB $@16 arithm_e
61 $@17: %empty
62 arithm_e: arithm_e MUL $@17 arithm_e
63 $@18: %empty
64 arithm_e: arithm_e DIV $@18 arithm_e
65 $@19: %empty
66 $@20: %empty
67 $@21: %empty
68 arithm_e: $@19 IDENTIFIER $@20 EQ $@21 arithm_e
69 | IDENTIFIER
70 $@22: %empty
71 arithm_e: $@22 NUM
72 $@23: %empty
73 arithm_e: IDENTIFIER $@23 INC_OP
74 $@24: %empty
75 arithm_e: IDENTIFIER $@24 DEC_OP
76 $@25: %empty
77 $@26: %empty
78 if_stmt: IF OC rel_e CC $@25 OF sl CF $@26 ELSE OF sl CF
79 for_stmt: FOR OC for_args CC OF sl CF
80 $@27: %empty
81 $@28: %empty
82 for_args: arg1 $@27 SEMC arg2 $@28 SEMC arg3
83 arg1: variable_declaration
84 | expression
85 | %empty
86 arg2: rel_e
87 | %empty
88 arg3: arithm_e
89 | %empty
Terminals, with rules where they appear
$end (0) 0
error (256)
NUM (258) 71
DECIMAL (259)
IDENTIFIER (260) 3 4 8 24 25 26 29 30 31 34 35 36 53 68 69 73 75
CONSTANT (261)
STRING_LITERAL (262)
INC_OP (263) 73
DEC_OP (264) 75
LE (265) 44
GE (266) 46
EQ (267) 24 29 34 53 68
NE_OP (268) 50
DEQ (269) 48
AND_OP (270)
OR_OP (271)
MUL_ASSIGN (272)
DIV_ASSIGN (273)
MOD (274)
ADD_ASSIGN (275)
SUB_ASSIGN (276)
TYPEDEF (277)
STATIC (278) 10
CHAR (279)
INT (280) 19
FLOAT (281) 20
CONST (282)
VOID (283) 10
IF (284) 78
ELSE (285) 78
FOR (286) 79
GOTO (287)
CONTINUE (288)
BREAK (289)
RETURN (290)
TRUE1 (291) 54
FALSE1 (292) 55
BOOLEAN (293) 21
IMPORT (294) 4 5 6
CLASS (295) 9
PACKAGE (296) 3
MAIN (297) 10
STRING (298) 10
ARGS (299) 10
PUBLIC (300) 9 10
SOP (301)
OC (302) 10 78 79
CC (303) 10 78 79
OF (304) 9 10 78 79
CF (305) 9 10 78 79
OS (306) 10
FS (307) 10
ADD (308) 58
SUB (309) 60
MUL (310) 4 6 62
DIV (311) 64
LT (312) 40
GT (313) 42
COMMA (314) 25 30 35
COL (315)
DOT (316) 4
BIT_AND (317)
NOT (318)
EXP (319)
BIT_OR (320)
QUE (321)
SEMC (322) 3 4 5 6 13 14 17 82
NE (323)
Nonterminals, with rules where they appear
$accept (69)
on left: 0
S (70)
on left: 1, on right: 0
compilation_unit (71)
on left: 2, on right: 1
package_statement (72)
on left: 3, on right: 2
import_statement (73)
on left: 4 5 6 7, on right: 2
class_name (74)
on left: 8, on right: 5 9
class_stmt (75)
on left: 9, on right: 2
main_method (76)
on left: 10, on right: 9
sl (77)
on left: 11 12, on right: 10 11 78 79
s1 (78)
on left: 13 14 15 16 17, on right: 11
variable_declaration (79)
on left: 18, on right: 13 83
dtypes (80)
on left: 19 20 21, on right: 18
ids1 (81)
on left: 24 25 26, on right: 19 25
$@1 (82)
on left: 22, on right: 24
$@2 (83)
on left: 23, on right: 24
ids2 (84)
on left: 29 30 31, on right: 20 30
$@3 (85)
on left: 27, on right: 29
$@4 (86)
on left: 28, on right: 29
ids3 (87)
on left: 34 35 36, on right: 21 35
$@5 (88)
on left: 32, on right: 34
$@6 (89)
on left: 33, on right: 34
expression (90)
on left: 37 38, on right: 14 84
rel_e (91)
on left: 40 42 44 46 48 50 53 54 55 56, on right: 34 37 53 78 86
$@7 (92)
on left: 39, on right: 40
$@8 (93)
on left: 41, on right: 42
$@9 (94)
on left: 43, on right: 44
$@10 (95)
on left: 45, on right: 46
$@11 (96)
on left: 47, on right: 48
$@12 (97)
on left: 49, on right: 50
$@13 (98)
on left: 51, on right: 53
$@14 (99)
on left: 52, on right: 53
arithm_e (100)
on left: 58 60 62 64 68 69 71 73 75, on right: 24 29 38 40 42 44
46 48 50 56 58 60 62 64 68 88
$@15 (101)
on left: 57, on right: 58
$@16 (102)
on left: 59, on right: 60
$@17 (103)
on left: 61, on right: 62
$@18 (104)
on left: 63, on right: 64
$@19 (105)
on left: 65, on right: 68
$@20 (106)
on left: 66, on right: 68
$@21 (107)
on left: 67, on right: 68
$@22 (108)
on left: 70, on right: 71
$@23 (109)
on left: 72, on right: 73
$@24 (110)
on left: 74, on right: 75
if_stmt (111)
on left: 78, on right: 15
$@25 (112)
on left: 76, on right: 78
$@26 (113)
on left: 77, on right: 78
for_stmt (114)
on left: 79, on right: 16
for_args (115)
on left: 82, on right: 79
$@27 (116)
on left: 80, on right: 82
$@28 (117)
on left: 81, on right: 82
arg1 (118)
on left: 83 84 85, on right: 82
arg2 (119)
on left: 86 87, on right: 82
arg3 (120)
on left: 88 89, on right: 82
State 0
0 $accept: . S $end
PACKAGE shift, and go to state 1
S go to state 2
compilation_unit go to state 3
package_statement go to state 4
State 1
3 package_statement: PACKAGE . IDENTIFIER SEMC
IDENTIFIER shift, and go to state 5
State 2
0 $accept: S . $end
$end shift, and go to state 6
State 3
1 S: compilation_unit .
$default reduce using rule 1 (S)
State 4
2 compilation_unit: package_statement . import_statement class_stmt
IMPORT shift, and go to state 7
$default reduce using rule 7 (import_statement)
import_statement go to state 8
State 5
3 package_statement: PACKAGE IDENTIFIER . SEMC
SEMC shift, and go to state 9
State 6
0 $accept: S $end .
$default accept
State 7
4 import_statement: IMPORT . IDENTIFIER DOT MUL SEMC
5 | IMPORT . class_name SEMC
6 | IMPORT . MUL SEMC
IDENTIFIER shift, and go to state 10
MUL shift, and go to state 11
class_name go to state 12
State 8
2 compilation_unit: package_statement import_statement . class_stmt
PUBLIC shift, and go to state 13
class_stmt go to state 14
State 9
3 package_statement: PACKAGE IDENTIFIER SEMC .
$default reduce using rule 3 (package_statement)
State 10
4 import_statement: IMPORT IDENTIFIER . DOT MUL SEMC
8 class_name: IDENTIFIER .
DOT shift, and go to state 15
$default reduce using rule 8 (class_name)
State 11
6 import_statement: IMPORT MUL . SEMC
SEMC shift, and go to state 16
State 12
5 import_statement: IMPORT class_name . SEMC
SEMC shift, and go to state 17
State 13
9 class_stmt: PUBLIC . CLASS class_name OF main_method CF
CLASS shift, and go to state 18
State 14
2 compilation_unit: package_statement import_statement class_stmt .
$default reduce using rule 2 (compilation_unit)
State 15
4 import_statement: IMPORT IDENTIFIER DOT . MUL SEMC
MUL shift, and go to state 19
State 16
6 import_statement: IMPORT MUL SEMC .
$default reduce using rule 6 (import_statement)
State 17
5 import_statement: IMPORT class_name SEMC .
$default reduce using rule 5 (import_statement)
State 18
9 class_stmt: PUBLIC CLASS . class_name OF main_method CF
IDENTIFIER shift, and go to state 20
class_name go to state 21
State 19
4 import_statement: IMPORT IDENTIFIER DOT MUL . SEMC
SEMC shift, and go to state 22
State 20
8 class_name: IDENTIFIER .
$default reduce using rule 8 (class_name)
State 21
9 class_stmt: PUBLIC CLASS class_name . OF main_method CF
OF shift, and go to state 23
State 22
4 import_statement: IMPORT IDENTIFIER DOT MUL SEMC .
$default reduce using rule 4 (import_statement)
State 23
9 class_stmt: PUBLIC CLASS class_name OF . main_method CF
PUBLIC shift, and go to state 24
main_method go to state 25
State 24
10 main_method: PUBLIC . STATIC VOID MAIN OC STRING OS FS ARGS CC OF sl CF
STATIC shift, and go to state 26
State 25
9 class_stmt: PUBLIC CLASS class_name OF main_method . CF
CF shift, and go to state 27
State 26
10 main_method: PUBLIC STATIC . VOID MAIN OC STRING OS FS ARGS CC OF sl CF
VOID shift, and go to state 28
State 27
9 class_stmt: PUBLIC CLASS class_name OF main_method CF .
$default reduce using rule 9 (class_stmt)
State 28
10 main_method: PUBLIC STATIC VOID . MAIN OC STRING OS FS ARGS CC OF sl CF
MAIN shift, and go to state 29
State 29
10 main_method: PUBLIC STATIC VOID MAIN . OC STRING OS FS ARGS CC OF sl CF
OC shift, and go to state 30
State 30
10 main_method: PUBLIC STATIC VOID MAIN OC . STRING OS FS ARGS CC OF sl CF
STRING shift, and go to state 31
State 31
10 main_method: PUBLIC STATIC VOID MAIN OC STRING . OS FS ARGS CC OF sl CF
OS shift, and go to state 32
State 32
10 main_method: PUBLIC STATIC VOID MAIN OC STRING OS . FS ARGS CC OF sl CF
FS shift, and go to state 33
State 33
10 main_method: PUBLIC STATIC VOID MAIN OC STRING OS FS . ARGS CC OF sl CF
ARGS shift, and go to state 34
State 34
10 main_method: PUBLIC STATIC VOID MAIN OC STRING OS FS ARGS . CC OF sl CF
CC shift, and go to state 35
State 35
10 main_method: PUBLIC STATIC VOID MAIN OC STRING OS FS ARGS CC . OF sl CF
OF shift, and go to state 36
State 36
10 main_method: PUBLIC STATIC VOID MAIN OC STRING OS FS ARGS CC OF . sl CF
$default reduce using rule 12 (sl)
sl go to state 37
State 37
10 main_method: PUBLIC STATIC VOID MAIN OC STRING OS FS ARGS CC OF sl . CF
11 sl: sl . s1
IDENTIFIER shift, and go to state 38
INT shift, and go to state 39
FLOAT shift, and go to state 40
IF shift, and go to state 41
FOR shift, and go to state 42
TRUE1 shift, and go to state 43
FALSE1 shift, and go to state 44
BOOLEAN shift, and go to state 45
CF shift, and go to state 46
SEMC shift, and go to state 47
IDENTIFIER [reduce using rule 65 ($@19)]
$default reduce using rule 70 ($@22)
s1 go to state 48
variable_declaration go to state 49
dtypes go to state 50
expression go to state 51
rel_e go to state 52
arithm_e go to state 53
$@19 go to state 54
$@22 go to state 55
if_stmt go to state 56
for_stmt go to state 57
State 38
53 rel_e: IDENTIFIER . $@13 EQ $@14 rel_e
69 arithm_e: IDENTIFIER .
73 | IDENTIFIER . $@23 INC_OP
75 | IDENTIFIER . $@24 DEC_OP
INC_OP reduce using rule 72 ($@23)
DEC_OP reduce using rule 74 ($@24)
EQ reduce using rule 51 ($@13)
$default reduce using rule 69 (arithm_e)
$@13 go to state 58
$@23 go to state 59
$@24 go to state 60
State 39
19 dtypes: INT . ids1
IDENTIFIER shift, and go to state 61
ids1 go to state 62
State 40
20 dtypes: FLOAT . ids2
IDENTIFIER shift, and go to state 63
ids2 go to state 64
State 41
78 if_stmt: IF . OC rel_e CC $@25 OF sl CF $@26 ELSE OF sl CF
OC shift, and go to state 65
State 42
79 for_stmt: FOR . OC for_args CC OF sl CF
OC shift, and go to state 66
State 43
54 rel_e: TRUE1 .
$default reduce using rule 54 (rel_e)
State 44
55 rel_e: FALSE1 .
$default reduce using rule 55 (rel_e)
State 45
21 dtypes: BOOLEAN . ids3
IDENTIFIER shift, and go to state 67
ids3 go to state 68
State 46
10 main_method: PUBLIC STATIC VOID MAIN OC STRING OS FS ARGS CC OF sl CF .
$default reduce using rule 10 (main_method)
State 47
17 s1: SEMC .
$default reduce using rule 17 (s1)
State 48
11 sl: sl s1 .
$default reduce using rule 11 (sl)
State 49
13 s1: variable_declaration . SEMC
SEMC shift, and go to state 69
State 50
18 variable_declaration: dtypes .
$default reduce using rule 18 (variable_declaration)
State 51
14 s1: expression . SEMC
SEMC shift, and go to state 70
State 52
37 expression: rel_e .
$default reduce using rule 37 (expression)
State 53
38 expression: arithm_e .
40 rel_e: arithm_e . LT $@7 arithm_e
42 | arithm_e . GT $@8 arithm_e
44 | arithm_e . LE $@9 arithm_e
46 | arithm_e . GE $@10 arithm_e
48 | arithm_e . DEQ $@11 arithm_e
50 | arithm_e . NE_OP $@12 arithm_e
56 | arithm_e .
58 arithm_e: arithm_e . ADD $@15 arithm_e
60 | arithm_e . SUB $@16 arithm_e
62 | arithm_e . MUL $@17 arithm_e
64 | arithm_e . DIV $@18 arithm_e
LE shift, and go to state 71
GE shift, and go to state 72
NE_OP shift, and go to state 73
DEQ shift, and go to state 74
ADD shift, and go to state 75
SUB shift, and go to state 76
MUL shift, and go to state 77
DIV shift, and go to state 78
LT shift, and go to state 79
GT shift, and go to state 80
SEMC reduce using rule 38 (expression)
SEMC [reduce using rule 56 (rel_e)]
$default reduce using rule 38 (expression)
State 54
68 arithm_e: $@19 . IDENTIFIER $@20 EQ $@21 arithm_e
IDENTIFIER shift, and go to state 81
State 55
71 arithm_e: $@22 . NUM
NUM shift, and go to state 82
State 56
15 s1: if_stmt .
$default reduce using rule 15 (s1)
State 57
16 s1: for_stmt .
$default reduce using rule 16 (s1)
State 58
53 rel_e: IDENTIFIER $@13 . EQ $@14 rel_e
EQ shift, and go to state 83
State 59
73 arithm_e: IDENTIFIER $@23 . INC_OP
INC_OP shift, and go to state 84
State 60
75 arithm_e: IDENTIFIER $@24 . DEC_OP
DEC_OP shift, and go to state 85
State 61
24 ids1: IDENTIFIER . $@1 EQ $@2 arithm_e
26 | IDENTIFIER .
EQ reduce using rule 22 ($@1)
$default reduce using rule 26 (ids1)
$@1 go to state 86
State 62
19 dtypes: INT ids1 .
25 ids1: ids1 . COMMA IDENTIFIER
COMMA shift, and go to state 87
$default reduce using rule 19 (dtypes)
State 63
29 ids2: IDENTIFIER . $@3 EQ $@4 arithm_e
31 | IDENTIFIER .
EQ reduce using rule 27 ($@3)
$default reduce using rule 31 (ids2)
$@3 go to state 88
State 64
20 dtypes: FLOAT ids2 .
30 ids2: ids2 . COMMA IDENTIFIER
COMMA shift, and go to state 89
$default reduce using rule 20 (dtypes)
State 65
78 if_stmt: IF OC . rel_e CC $@25 OF sl CF $@26 ELSE OF sl CF
IDENTIFIER shift, and go to state 38
TRUE1 shift, and go to state 43
FALSE1 shift, and go to state 44
IDENTIFIER [reduce using rule 65 ($@19)]
$default reduce using rule 70 ($@22)
rel_e go to state 90
arithm_e go to state 91
$@19 go to state 54
$@22 go to state 55
State 66
79 for_stmt: FOR OC . for_args CC OF sl CF
IDENTIFIER shift, and go to state 38
INT shift, and go to state 39
FLOAT shift, and go to state 40
TRUE1 shift, and go to state 43
FALSE1 shift, and go to state 44
BOOLEAN shift, and go to state 45
IDENTIFIER [reduce using rule 65 ($@19)]
SEMC reduce using rule 85 (arg1)
$default reduce using rule 70 ($@22)
variable_declaration go to state 92
dtypes go to state 50
expression go to state 93
rel_e go to state 52
arithm_e go to state 53
$@19 go to state 54
$@22 go to state 55