-
Notifications
You must be signed in to change notification settings - Fork 1
/
parser.out
executable file
·3756 lines (3143 loc) · 176 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.8 (http://www.dabeaz.com/ply)
Unused terminals:
SELF_TYPE
COMMENTS
SPECIAL_CHAR
AUTO_TYPE
Grammar
Rule 0 S' -> program
Rule 1 program -> class_list
Rule 2 class_list -> class_list class POINT_AND_COMMA
Rule 3 class_list -> class POINT_AND_COMMA
Rule 4 class -> CLASS TYPE_ID O_KEY features_list_opt C_KEY
Rule 5 class -> CLASS TYPE_ID INHERITS TYPE_ID O_KEY features_list_opt C_KEY
Rule 6 features_list_opt -> features_list
Rule 7 features_list_opt -> empty
Rule 8 features_list -> features_list feature POINT_AND_COMMA
Rule 9 features_list -> feature POINT_AND_COMMA
Rule 10 feature -> ID O_PAR formal_params_list C_PAR TWO_POINTS TYPE_ID O_KEY expression C_KEY
Rule 11 feature -> ID O_PAR C_PAR TWO_POINTS TYPE_ID O_KEY expression C_KEY
Rule 12 feature -> ID TWO_POINTS TYPE_ID ASSIGNAMENT expression
Rule 13 feature -> ID TWO_POINTS TYPE_ID
Rule 14 formal_params_list -> formal_params_list COMMA formal_param
Rule 15 formal_params_list -> formal_param
Rule 16 formal_param -> ID TWO_POINTS TYPE_ID
Rule 17 expression -> ID
Rule 18 expression -> INT
Rule 19 expression -> BOOL
Rule 20 expression -> STRING
Rule 21 expression -> SELF
Rule 22 expression -> O_KEY block_list C_KEY
Rule 23 block_list -> block_list expression POINT_AND_COMMA
Rule 24 block_list -> expression POINT_AND_COMMA
Rule 25 expression -> ID ASSIGNAMENT expression
Rule 26 expression -> expression POINT ID O_PAR arguments_list_opt C_PAR
Rule 27 arguments_list_opt -> arguments_list
Rule 28 arguments_list_opt -> empty
Rule 29 arguments_list -> arguments_list COMMA expression
Rule 30 arguments_list -> expression
Rule 31 expression -> expression AT TYPE_ID POINT ID O_PAR arguments_list_opt C_PAR
Rule 32 expression -> ID O_PAR arguments_list_opt C_PAR
Rule 33 expression -> expression PLUS expression
Rule 34 expression -> expression MINUS expression
Rule 35 expression -> expression STAR expression
Rule 36 expression -> expression DIV expression
Rule 37 expression -> expression LESS_THAN expression
Rule 38 expression -> expression LESS_EQUAL_THAN expression
Rule 39 expression -> expression EQUAL expression
Rule 40 expression -> O_PAR expression C_PAR
Rule 41 expression -> IF expression THEN expression ELSE expression FI
Rule 42 expression -> WHILE expression LOOP expression POOL
Rule 43 expression -> CASE expression OF actions_list ESAC
Rule 44 actions_list -> actions_list action
Rule 45 actions_list -> action
Rule 46 action -> ID TWO_POINTS TYPE_ID IMPLICATION expression POINT_AND_COMMA
Rule 47 expression -> NEW TYPE_ID
Rule 48 expression -> ISVOID expression
Rule 49 expression -> DESTRUCTOR expression
Rule 50 expression -> NOT expression
Rule 51 expression -> let_expression
Rule 52 let_expression -> LET generate_instances IN expression
Rule 53 generate_instances -> ID TWO_POINTS TYPE_ID
Rule 54 generate_instances -> ID TWO_POINTS TYPE_ID ASSIGNAMENT expression
Rule 55 generate_instances -> generate_instances COMMA ID TWO_POINTS TYPE_ID
Rule 56 generate_instances -> generate_instances COMMA ID TWO_POINTS TYPE_ID ASSIGNAMENT expression
Rule 57 empty -> <empty>
Terminals, with rules where they appear
ASSIGNAMENT : 12 25 54 56
AT : 31
AUTO_TYPE :
BOOL : 19
CASE : 43
CLASS : 4 5
COMMA : 14 29 55 56
COMMENTS :
C_KEY : 4 5 10 11 22
C_PAR : 10 11 26 31 32 40
DESTRUCTOR : 49
DIV : 36
ELSE : 41
EQUAL : 39
ESAC : 43
FI : 41
ID : 10 11 12 13 16 17 25 26 31 32 46 53 54 55 56
IF : 41
IMPLICATION : 46
IN : 52
INHERITS : 5
INT : 18
ISVOID : 48
LESS_EQUAL_THAN : 38
LESS_THAN : 37
LET : 52
LOOP : 42
MINUS : 34
NEW : 47
NOT : 50
OF : 43
O_KEY : 4 5 10 11 22
O_PAR : 10 11 26 31 32 40
PLUS : 33
POINT : 26 31
POINT_AND_COMMA : 2 3 8 9 23 24 46
POOL : 42
SELF : 21
SELF_TYPE :
SPECIAL_CHAR :
STAR : 35
STRING : 20
THEN : 41
TWO_POINTS : 10 11 12 13 16 46 53 54 55 56
TYPE_ID : 4 5 5 10 11 12 13 16 31 46 47 53 54 55 56
WHILE : 42
error :
Nonterminals, with rules where they appear
action : 44 45
actions_list : 43 44
arguments_list : 27 29
arguments_list_opt : 26 31 32
block_list : 22 23
class : 2 3
class_list : 1 2
empty : 7 28
expression : 10 11 12 23 24 25 26 29 30 31 33 33 34 34 35 35 36 36 37 37 38 38 39 39 40 41 41 41 42 42 43 46 48 49 50 52 54 56
feature : 8 9
features_list : 6 8
features_list_opt : 4 5
formal_param : 14 15
formal_params_list : 10 14
generate_instances : 52 55 56
let_expression : 51
program : 0
Parsing method: LALR
state 0
(0) S' -> . program
(1) program -> . class_list
(2) class_list -> . class_list class POINT_AND_COMMA
(3) class_list -> . class POINT_AND_COMMA
(4) class -> . CLASS TYPE_ID O_KEY features_list_opt C_KEY
(5) class -> . CLASS TYPE_ID INHERITS TYPE_ID O_KEY features_list_opt C_KEY
CLASS shift and go to state 4
program shift and go to state 1
class_list shift and go to state 2
class shift and go to state 3
state 1
(0) S' -> program .
state 2
(1) program -> class_list .
(2) class_list -> class_list . class POINT_AND_COMMA
(4) class -> . CLASS TYPE_ID O_KEY features_list_opt C_KEY
(5) class -> . CLASS TYPE_ID INHERITS TYPE_ID O_KEY features_list_opt C_KEY
$end reduce using rule 1 (program -> class_list .)
CLASS shift and go to state 4
class shift and go to state 5
state 3
(3) class_list -> class . POINT_AND_COMMA
POINT_AND_COMMA shift and go to state 6
state 4
(4) class -> CLASS . TYPE_ID O_KEY features_list_opt C_KEY
(5) class -> CLASS . TYPE_ID INHERITS TYPE_ID O_KEY features_list_opt C_KEY
TYPE_ID shift and go to state 7
state 5
(2) class_list -> class_list class . POINT_AND_COMMA
POINT_AND_COMMA shift and go to state 8
state 6
(3) class_list -> class POINT_AND_COMMA .
CLASS reduce using rule 3 (class_list -> class POINT_AND_COMMA .)
$end reduce using rule 3 (class_list -> class POINT_AND_COMMA .)
state 7
(4) class -> CLASS TYPE_ID . O_KEY features_list_opt C_KEY
(5) class -> CLASS TYPE_ID . INHERITS TYPE_ID O_KEY features_list_opt C_KEY
O_KEY shift and go to state 9
INHERITS shift and go to state 10
state 8
(2) class_list -> class_list class POINT_AND_COMMA .
CLASS reduce using rule 2 (class_list -> class_list class POINT_AND_COMMA .)
$end reduce using rule 2 (class_list -> class_list class POINT_AND_COMMA .)
state 9
(4) class -> CLASS TYPE_ID O_KEY . features_list_opt C_KEY
(6) features_list_opt -> . features_list
(7) features_list_opt -> . empty
(8) features_list -> . features_list feature POINT_AND_COMMA
(9) features_list -> . feature POINT_AND_COMMA
(57) empty -> .
(10) feature -> . ID O_PAR formal_params_list C_PAR TWO_POINTS TYPE_ID O_KEY expression C_KEY
(11) feature -> . ID O_PAR C_PAR TWO_POINTS TYPE_ID O_KEY expression C_KEY
(12) feature -> . ID TWO_POINTS TYPE_ID ASSIGNAMENT expression
(13) feature -> . ID TWO_POINTS TYPE_ID
C_KEY reduce using rule 57 (empty -> .)
ID shift and go to state 15
features_list_opt shift and go to state 11
features_list shift and go to state 12
empty shift and go to state 13
feature shift and go to state 14
state 10
(5) class -> CLASS TYPE_ID INHERITS . TYPE_ID O_KEY features_list_opt C_KEY
TYPE_ID shift and go to state 16
state 11
(4) class -> CLASS TYPE_ID O_KEY features_list_opt . C_KEY
C_KEY shift and go to state 17
state 12
(6) features_list_opt -> features_list .
(8) features_list -> features_list . feature POINT_AND_COMMA
(10) feature -> . ID O_PAR formal_params_list C_PAR TWO_POINTS TYPE_ID O_KEY expression C_KEY
(11) feature -> . ID O_PAR C_PAR TWO_POINTS TYPE_ID O_KEY expression C_KEY
(12) feature -> . ID TWO_POINTS TYPE_ID ASSIGNAMENT expression
(13) feature -> . ID TWO_POINTS TYPE_ID
C_KEY reduce using rule 6 (features_list_opt -> features_list .)
ID shift and go to state 15
feature shift and go to state 18
state 13
(7) features_list_opt -> empty .
C_KEY reduce using rule 7 (features_list_opt -> empty .)
state 14
(9) features_list -> feature . POINT_AND_COMMA
POINT_AND_COMMA shift and go to state 19
state 15
(10) feature -> ID . O_PAR formal_params_list C_PAR TWO_POINTS TYPE_ID O_KEY expression C_KEY
(11) feature -> ID . O_PAR C_PAR TWO_POINTS TYPE_ID O_KEY expression C_KEY
(12) feature -> ID . TWO_POINTS TYPE_ID ASSIGNAMENT expression
(13) feature -> ID . TWO_POINTS TYPE_ID
O_PAR shift and go to state 20
TWO_POINTS shift and go to state 21
state 16
(5) class -> CLASS TYPE_ID INHERITS TYPE_ID . O_KEY features_list_opt C_KEY
O_KEY shift and go to state 22
state 17
(4) class -> CLASS TYPE_ID O_KEY features_list_opt C_KEY .
POINT_AND_COMMA reduce using rule 4 (class -> CLASS TYPE_ID O_KEY features_list_opt C_KEY .)
state 18
(8) features_list -> features_list feature . POINT_AND_COMMA
POINT_AND_COMMA shift and go to state 23
state 19
(9) features_list -> feature POINT_AND_COMMA .
ID reduce using rule 9 (features_list -> feature POINT_AND_COMMA .)
C_KEY reduce using rule 9 (features_list -> feature POINT_AND_COMMA .)
state 20
(10) feature -> ID O_PAR . formal_params_list C_PAR TWO_POINTS TYPE_ID O_KEY expression C_KEY
(11) feature -> ID O_PAR . C_PAR TWO_POINTS TYPE_ID O_KEY expression C_KEY
(14) formal_params_list -> . formal_params_list COMMA formal_param
(15) formal_params_list -> . formal_param
(16) formal_param -> . ID TWO_POINTS TYPE_ID
C_PAR shift and go to state 26
ID shift and go to state 24
formal_params_list shift and go to state 25
formal_param shift and go to state 27
state 21
(12) feature -> ID TWO_POINTS . TYPE_ID ASSIGNAMENT expression
(13) feature -> ID TWO_POINTS . TYPE_ID
TYPE_ID shift and go to state 28
state 22
(5) class -> CLASS TYPE_ID INHERITS TYPE_ID O_KEY . features_list_opt C_KEY
(6) features_list_opt -> . features_list
(7) features_list_opt -> . empty
(8) features_list -> . features_list feature POINT_AND_COMMA
(9) features_list -> . feature POINT_AND_COMMA
(57) empty -> .
(10) feature -> . ID O_PAR formal_params_list C_PAR TWO_POINTS TYPE_ID O_KEY expression C_KEY
(11) feature -> . ID O_PAR C_PAR TWO_POINTS TYPE_ID O_KEY expression C_KEY
(12) feature -> . ID TWO_POINTS TYPE_ID ASSIGNAMENT expression
(13) feature -> . ID TWO_POINTS TYPE_ID
C_KEY reduce using rule 57 (empty -> .)
ID shift and go to state 15
features_list_opt shift and go to state 29
features_list shift and go to state 12
empty shift and go to state 13
feature shift and go to state 14
state 23
(8) features_list -> features_list feature POINT_AND_COMMA .
ID reduce using rule 8 (features_list -> features_list feature POINT_AND_COMMA .)
C_KEY reduce using rule 8 (features_list -> features_list feature POINT_AND_COMMA .)
state 24
(16) formal_param -> ID . TWO_POINTS TYPE_ID
TWO_POINTS shift and go to state 30
state 25
(10) feature -> ID O_PAR formal_params_list . C_PAR TWO_POINTS TYPE_ID O_KEY expression C_KEY
(14) formal_params_list -> formal_params_list . COMMA formal_param
C_PAR shift and go to state 31
COMMA shift and go to state 32
state 26
(11) feature -> ID O_PAR C_PAR . TWO_POINTS TYPE_ID O_KEY expression C_KEY
TWO_POINTS shift and go to state 33
state 27
(15) formal_params_list -> formal_param .
C_PAR reduce using rule 15 (formal_params_list -> formal_param .)
COMMA reduce using rule 15 (formal_params_list -> formal_param .)
state 28
(12) feature -> ID TWO_POINTS TYPE_ID . ASSIGNAMENT expression
(13) feature -> ID TWO_POINTS TYPE_ID .
ASSIGNAMENT shift and go to state 34
POINT_AND_COMMA reduce using rule 13 (feature -> ID TWO_POINTS TYPE_ID .)
state 29
(5) class -> CLASS TYPE_ID INHERITS TYPE_ID O_KEY features_list_opt . C_KEY
C_KEY shift and go to state 35
state 30
(16) formal_param -> ID TWO_POINTS . TYPE_ID
TYPE_ID shift and go to state 36
state 31
(10) feature -> ID O_PAR formal_params_list C_PAR . TWO_POINTS TYPE_ID O_KEY expression C_KEY
TWO_POINTS shift and go to state 37
state 32
(14) formal_params_list -> formal_params_list COMMA . formal_param
(16) formal_param -> . ID TWO_POINTS TYPE_ID
ID shift and go to state 24
formal_param shift and go to state 38
state 33
(11) feature -> ID O_PAR C_PAR TWO_POINTS . TYPE_ID O_KEY expression C_KEY
TYPE_ID shift and go to state 39
state 34
(12) feature -> ID TWO_POINTS TYPE_ID ASSIGNAMENT . expression
(17) expression -> . ID
(18) expression -> . INT
(19) expression -> . BOOL
(20) expression -> . STRING
(21) expression -> . SELF
(22) expression -> . O_KEY block_list C_KEY
(25) expression -> . ID ASSIGNAMENT expression
(26) expression -> . expression POINT ID O_PAR arguments_list_opt C_PAR
(31) expression -> . expression AT TYPE_ID POINT ID O_PAR arguments_list_opt C_PAR
(32) expression -> . ID O_PAR arguments_list_opt C_PAR
(33) expression -> . expression PLUS expression
(34) expression -> . expression MINUS expression
(35) expression -> . expression STAR expression
(36) expression -> . expression DIV expression
(37) expression -> . expression LESS_THAN expression
(38) expression -> . expression LESS_EQUAL_THAN expression
(39) expression -> . expression EQUAL expression
(40) expression -> . O_PAR expression C_PAR
(41) expression -> . IF expression THEN expression ELSE expression FI
(42) expression -> . WHILE expression LOOP expression POOL
(43) expression -> . CASE expression OF actions_list ESAC
(47) expression -> . NEW TYPE_ID
(48) expression -> . ISVOID expression
(49) expression -> . DESTRUCTOR expression
(50) expression -> . NOT expression
(51) expression -> . let_expression
(52) let_expression -> . LET generate_instances IN expression
ID shift and go to state 40
INT shift and go to state 42
BOOL shift and go to state 43
STRING shift and go to state 44
SELF shift and go to state 45
O_KEY shift and go to state 46
O_PAR shift and go to state 47
IF shift and go to state 48
WHILE shift and go to state 49
CASE shift and go to state 50
NEW shift and go to state 51
ISVOID shift and go to state 52
DESTRUCTOR shift and go to state 53
NOT shift and go to state 54
LET shift and go to state 56
expression shift and go to state 41
let_expression shift and go to state 55
state 35
(5) class -> CLASS TYPE_ID INHERITS TYPE_ID O_KEY features_list_opt C_KEY .
POINT_AND_COMMA reduce using rule 5 (class -> CLASS TYPE_ID INHERITS TYPE_ID O_KEY features_list_opt C_KEY .)
state 36
(16) formal_param -> ID TWO_POINTS TYPE_ID .
C_PAR reduce using rule 16 (formal_param -> ID TWO_POINTS TYPE_ID .)
COMMA reduce using rule 16 (formal_param -> ID TWO_POINTS TYPE_ID .)
state 37
(10) feature -> ID O_PAR formal_params_list C_PAR TWO_POINTS . TYPE_ID O_KEY expression C_KEY
TYPE_ID shift and go to state 57
state 38
(14) formal_params_list -> formal_params_list COMMA formal_param .
C_PAR reduce using rule 14 (formal_params_list -> formal_params_list COMMA formal_param .)
COMMA reduce using rule 14 (formal_params_list -> formal_params_list COMMA formal_param .)
state 39
(11) feature -> ID O_PAR C_PAR TWO_POINTS TYPE_ID . O_KEY expression C_KEY
O_KEY shift and go to state 58
state 40
(17) expression -> ID .
(25) expression -> ID . ASSIGNAMENT expression
(32) expression -> ID . O_PAR arguments_list_opt C_PAR
POINT reduce using rule 17 (expression -> ID .)
AT reduce using rule 17 (expression -> ID .)
PLUS reduce using rule 17 (expression -> ID .)
MINUS reduce using rule 17 (expression -> ID .)
STAR reduce using rule 17 (expression -> ID .)
DIV reduce using rule 17 (expression -> ID .)
LESS_THAN reduce using rule 17 (expression -> ID .)
LESS_EQUAL_THAN reduce using rule 17 (expression -> ID .)
EQUAL reduce using rule 17 (expression -> ID .)
POINT_AND_COMMA reduce using rule 17 (expression -> ID .)
C_PAR reduce using rule 17 (expression -> ID .)
THEN reduce using rule 17 (expression -> ID .)
LOOP reduce using rule 17 (expression -> ID .)
OF reduce using rule 17 (expression -> ID .)
C_KEY reduce using rule 17 (expression -> ID .)
COMMA reduce using rule 17 (expression -> ID .)
ELSE reduce using rule 17 (expression -> ID .)
POOL reduce using rule 17 (expression -> ID .)
FI reduce using rule 17 (expression -> ID .)
IN reduce using rule 17 (expression -> ID .)
ASSIGNAMENT shift and go to state 59
O_PAR shift and go to state 60
state 41
(12) feature -> ID TWO_POINTS TYPE_ID ASSIGNAMENT expression .
(26) expression -> expression . POINT ID O_PAR arguments_list_opt C_PAR
(31) expression -> expression . AT TYPE_ID POINT ID O_PAR arguments_list_opt C_PAR
(33) expression -> expression . PLUS expression
(34) expression -> expression . MINUS expression
(35) expression -> expression . STAR expression
(36) expression -> expression . DIV expression
(37) expression -> expression . LESS_THAN expression
(38) expression -> expression . LESS_EQUAL_THAN expression
(39) expression -> expression . EQUAL expression
POINT_AND_COMMA reduce using rule 12 (feature -> ID TWO_POINTS TYPE_ID ASSIGNAMENT expression .)
POINT shift and go to state 61
AT shift and go to state 62
PLUS shift and go to state 63
MINUS shift and go to state 64
STAR shift and go to state 65
DIV shift and go to state 66
LESS_THAN shift and go to state 67
LESS_EQUAL_THAN shift and go to state 68
EQUAL shift and go to state 69
state 42
(18) expression -> INT .
POINT reduce using rule 18 (expression -> INT .)
AT reduce using rule 18 (expression -> INT .)
PLUS reduce using rule 18 (expression -> INT .)
MINUS reduce using rule 18 (expression -> INT .)
STAR reduce using rule 18 (expression -> INT .)
DIV reduce using rule 18 (expression -> INT .)
LESS_THAN reduce using rule 18 (expression -> INT .)
LESS_EQUAL_THAN reduce using rule 18 (expression -> INT .)
EQUAL reduce using rule 18 (expression -> INT .)
POINT_AND_COMMA reduce using rule 18 (expression -> INT .)
C_PAR reduce using rule 18 (expression -> INT .)
THEN reduce using rule 18 (expression -> INT .)
LOOP reduce using rule 18 (expression -> INT .)
OF reduce using rule 18 (expression -> INT .)
C_KEY reduce using rule 18 (expression -> INT .)
COMMA reduce using rule 18 (expression -> INT .)
ELSE reduce using rule 18 (expression -> INT .)
POOL reduce using rule 18 (expression -> INT .)
FI reduce using rule 18 (expression -> INT .)
IN reduce using rule 18 (expression -> INT .)
state 43
(19) expression -> BOOL .
POINT reduce using rule 19 (expression -> BOOL .)
AT reduce using rule 19 (expression -> BOOL .)
PLUS reduce using rule 19 (expression -> BOOL .)
MINUS reduce using rule 19 (expression -> BOOL .)
STAR reduce using rule 19 (expression -> BOOL .)
DIV reduce using rule 19 (expression -> BOOL .)
LESS_THAN reduce using rule 19 (expression -> BOOL .)
LESS_EQUAL_THAN reduce using rule 19 (expression -> BOOL .)
EQUAL reduce using rule 19 (expression -> BOOL .)
POINT_AND_COMMA reduce using rule 19 (expression -> BOOL .)
C_PAR reduce using rule 19 (expression -> BOOL .)
THEN reduce using rule 19 (expression -> BOOL .)
LOOP reduce using rule 19 (expression -> BOOL .)
OF reduce using rule 19 (expression -> BOOL .)
C_KEY reduce using rule 19 (expression -> BOOL .)
COMMA reduce using rule 19 (expression -> BOOL .)
ELSE reduce using rule 19 (expression -> BOOL .)
POOL reduce using rule 19 (expression -> BOOL .)
FI reduce using rule 19 (expression -> BOOL .)
IN reduce using rule 19 (expression -> BOOL .)
state 44
(20) expression -> STRING .
POINT reduce using rule 20 (expression -> STRING .)
AT reduce using rule 20 (expression -> STRING .)
PLUS reduce using rule 20 (expression -> STRING .)
MINUS reduce using rule 20 (expression -> STRING .)
STAR reduce using rule 20 (expression -> STRING .)
DIV reduce using rule 20 (expression -> STRING .)
LESS_THAN reduce using rule 20 (expression -> STRING .)
LESS_EQUAL_THAN reduce using rule 20 (expression -> STRING .)
EQUAL reduce using rule 20 (expression -> STRING .)
POINT_AND_COMMA reduce using rule 20 (expression -> STRING .)
C_PAR reduce using rule 20 (expression -> STRING .)
THEN reduce using rule 20 (expression -> STRING .)
LOOP reduce using rule 20 (expression -> STRING .)
OF reduce using rule 20 (expression -> STRING .)
C_KEY reduce using rule 20 (expression -> STRING .)
COMMA reduce using rule 20 (expression -> STRING .)
ELSE reduce using rule 20 (expression -> STRING .)
POOL reduce using rule 20 (expression -> STRING .)
FI reduce using rule 20 (expression -> STRING .)
IN reduce using rule 20 (expression -> STRING .)
state 45
(21) expression -> SELF .
POINT reduce using rule 21 (expression -> SELF .)
AT reduce using rule 21 (expression -> SELF .)
PLUS reduce using rule 21 (expression -> SELF .)
MINUS reduce using rule 21 (expression -> SELF .)
STAR reduce using rule 21 (expression -> SELF .)
DIV reduce using rule 21 (expression -> SELF .)
LESS_THAN reduce using rule 21 (expression -> SELF .)
LESS_EQUAL_THAN reduce using rule 21 (expression -> SELF .)
EQUAL reduce using rule 21 (expression -> SELF .)
POINT_AND_COMMA reduce using rule 21 (expression -> SELF .)
C_PAR reduce using rule 21 (expression -> SELF .)
THEN reduce using rule 21 (expression -> SELF .)
LOOP reduce using rule 21 (expression -> SELF .)
OF reduce using rule 21 (expression -> SELF .)
C_KEY reduce using rule 21 (expression -> SELF .)
COMMA reduce using rule 21 (expression -> SELF .)
ELSE reduce using rule 21 (expression -> SELF .)
POOL reduce using rule 21 (expression -> SELF .)
FI reduce using rule 21 (expression -> SELF .)
IN reduce using rule 21 (expression -> SELF .)
state 46
(22) expression -> O_KEY . block_list C_KEY
(23) block_list -> . block_list expression POINT_AND_COMMA
(24) block_list -> . expression POINT_AND_COMMA
(17) expression -> . ID
(18) expression -> . INT
(19) expression -> . BOOL
(20) expression -> . STRING
(21) expression -> . SELF
(22) expression -> . O_KEY block_list C_KEY
(25) expression -> . ID ASSIGNAMENT expression
(26) expression -> . expression POINT ID O_PAR arguments_list_opt C_PAR
(31) expression -> . expression AT TYPE_ID POINT ID O_PAR arguments_list_opt C_PAR
(32) expression -> . ID O_PAR arguments_list_opt C_PAR
(33) expression -> . expression PLUS expression
(34) expression -> . expression MINUS expression
(35) expression -> . expression STAR expression
(36) expression -> . expression DIV expression
(37) expression -> . expression LESS_THAN expression
(38) expression -> . expression LESS_EQUAL_THAN expression
(39) expression -> . expression EQUAL expression
(40) expression -> . O_PAR expression C_PAR
(41) expression -> . IF expression THEN expression ELSE expression FI
(42) expression -> . WHILE expression LOOP expression POOL
(43) expression -> . CASE expression OF actions_list ESAC
(47) expression -> . NEW TYPE_ID
(48) expression -> . ISVOID expression
(49) expression -> . DESTRUCTOR expression
(50) expression -> . NOT expression
(51) expression -> . let_expression
(52) let_expression -> . LET generate_instances IN expression
ID shift and go to state 40
INT shift and go to state 42
BOOL shift and go to state 43
STRING shift and go to state 44
SELF shift and go to state 45
O_KEY shift and go to state 46
O_PAR shift and go to state 47
IF shift and go to state 48
WHILE shift and go to state 49
CASE shift and go to state 50
NEW shift and go to state 51
ISVOID shift and go to state 52
DESTRUCTOR shift and go to state 53
NOT shift and go to state 54
LET shift and go to state 56
block_list shift and go to state 70
expression shift and go to state 71
let_expression shift and go to state 55
state 47
(40) expression -> O_PAR . expression C_PAR
(17) expression -> . ID
(18) expression -> . INT
(19) expression -> . BOOL
(20) expression -> . STRING
(21) expression -> . SELF
(22) expression -> . O_KEY block_list C_KEY
(25) expression -> . ID ASSIGNAMENT expression
(26) expression -> . expression POINT ID O_PAR arguments_list_opt C_PAR
(31) expression -> . expression AT TYPE_ID POINT ID O_PAR arguments_list_opt C_PAR
(32) expression -> . ID O_PAR arguments_list_opt C_PAR
(33) expression -> . expression PLUS expression
(34) expression -> . expression MINUS expression
(35) expression -> . expression STAR expression
(36) expression -> . expression DIV expression
(37) expression -> . expression LESS_THAN expression
(38) expression -> . expression LESS_EQUAL_THAN expression
(39) expression -> . expression EQUAL expression
(40) expression -> . O_PAR expression C_PAR
(41) expression -> . IF expression THEN expression ELSE expression FI
(42) expression -> . WHILE expression LOOP expression POOL
(43) expression -> . CASE expression OF actions_list ESAC
(47) expression -> . NEW TYPE_ID
(48) expression -> . ISVOID expression
(49) expression -> . DESTRUCTOR expression
(50) expression -> . NOT expression
(51) expression -> . let_expression
(52) let_expression -> . LET generate_instances IN expression
ID shift and go to state 40
INT shift and go to state 42
BOOL shift and go to state 43
STRING shift and go to state 44
SELF shift and go to state 45
O_KEY shift and go to state 46
O_PAR shift and go to state 47
IF shift and go to state 48
WHILE shift and go to state 49
CASE shift and go to state 50
NEW shift and go to state 51
ISVOID shift and go to state 52
DESTRUCTOR shift and go to state 53
NOT shift and go to state 54
LET shift and go to state 56
expression shift and go to state 72
let_expression shift and go to state 55
state 48
(41) expression -> IF . expression THEN expression ELSE expression FI
(17) expression -> . ID
(18) expression -> . INT
(19) expression -> . BOOL
(20) expression -> . STRING
(21) expression -> . SELF
(22) expression -> . O_KEY block_list C_KEY
(25) expression -> . ID ASSIGNAMENT expression
(26) expression -> . expression POINT ID O_PAR arguments_list_opt C_PAR
(31) expression -> . expression AT TYPE_ID POINT ID O_PAR arguments_list_opt C_PAR
(32) expression -> . ID O_PAR arguments_list_opt C_PAR
(33) expression -> . expression PLUS expression
(34) expression -> . expression MINUS expression
(35) expression -> . expression STAR expression
(36) expression -> . expression DIV expression
(37) expression -> . expression LESS_THAN expression
(38) expression -> . expression LESS_EQUAL_THAN expression
(39) expression -> . expression EQUAL expression
(40) expression -> . O_PAR expression C_PAR
(41) expression -> . IF expression THEN expression ELSE expression FI
(42) expression -> . WHILE expression LOOP expression POOL
(43) expression -> . CASE expression OF actions_list ESAC
(47) expression -> . NEW TYPE_ID
(48) expression -> . ISVOID expression
(49) expression -> . DESTRUCTOR expression
(50) expression -> . NOT expression
(51) expression -> . let_expression
(52) let_expression -> . LET generate_instances IN expression
ID shift and go to state 40
INT shift and go to state 42
BOOL shift and go to state 43
STRING shift and go to state 44
SELF shift and go to state 45
O_KEY shift and go to state 46
O_PAR shift and go to state 47
IF shift and go to state 48
WHILE shift and go to state 49
CASE shift and go to state 50
NEW shift and go to state 51
ISVOID shift and go to state 52
DESTRUCTOR shift and go to state 53
NOT shift and go to state 54
LET shift and go to state 56
expression shift and go to state 73
let_expression shift and go to state 55
state 49
(42) expression -> WHILE . expression LOOP expression POOL
(17) expression -> . ID
(18) expression -> . INT
(19) expression -> . BOOL
(20) expression -> . STRING
(21) expression -> . SELF
(22) expression -> . O_KEY block_list C_KEY
(25) expression -> . ID ASSIGNAMENT expression
(26) expression -> . expression POINT ID O_PAR arguments_list_opt C_PAR
(31) expression -> . expression AT TYPE_ID POINT ID O_PAR arguments_list_opt C_PAR
(32) expression -> . ID O_PAR arguments_list_opt C_PAR
(33) expression -> . expression PLUS expression
(34) expression -> . expression MINUS expression
(35) expression -> . expression STAR expression
(36) expression -> . expression DIV expression
(37) expression -> . expression LESS_THAN expression
(38) expression -> . expression LESS_EQUAL_THAN expression
(39) expression -> . expression EQUAL expression
(40) expression -> . O_PAR expression C_PAR
(41) expression -> . IF expression THEN expression ELSE expression FI
(42) expression -> . WHILE expression LOOP expression POOL
(43) expression -> . CASE expression OF actions_list ESAC
(47) expression -> . NEW TYPE_ID
(48) expression -> . ISVOID expression
(49) expression -> . DESTRUCTOR expression
(50) expression -> . NOT expression
(51) expression -> . let_expression
(52) let_expression -> . LET generate_instances IN expression
ID shift and go to state 40
INT shift and go to state 42
BOOL shift and go to state 43
STRING shift and go to state 44
SELF shift and go to state 45
O_KEY shift and go to state 46
O_PAR shift and go to state 47
IF shift and go to state 48
WHILE shift and go to state 49
CASE shift and go to state 50
NEW shift and go to state 51
ISVOID shift and go to state 52
DESTRUCTOR shift and go to state 53
NOT shift and go to state 54
LET shift and go to state 56
expression shift and go to state 74
let_expression shift and go to state 55
state 50
(43) expression -> CASE . expression OF actions_list ESAC
(17) expression -> . ID
(18) expression -> . INT
(19) expression -> . BOOL
(20) expression -> . STRING
(21) expression -> . SELF
(22) expression -> . O_KEY block_list C_KEY
(25) expression -> . ID ASSIGNAMENT expression
(26) expression -> . expression POINT ID O_PAR arguments_list_opt C_PAR
(31) expression -> . expression AT TYPE_ID POINT ID O_PAR arguments_list_opt C_PAR
(32) expression -> . ID O_PAR arguments_list_opt C_PAR
(33) expression -> . expression PLUS expression
(34) expression -> . expression MINUS expression
(35) expression -> . expression STAR expression
(36) expression -> . expression DIV expression
(37) expression -> . expression LESS_THAN expression
(38) expression -> . expression LESS_EQUAL_THAN expression
(39) expression -> . expression EQUAL expression
(40) expression -> . O_PAR expression C_PAR
(41) expression -> . IF expression THEN expression ELSE expression FI
(42) expression -> . WHILE expression LOOP expression POOL
(43) expression -> . CASE expression OF actions_list ESAC
(47) expression -> . NEW TYPE_ID
(48) expression -> . ISVOID expression
(49) expression -> . DESTRUCTOR expression
(50) expression -> . NOT expression
(51) expression -> . let_expression
(52) let_expression -> . LET generate_instances IN expression
ID shift and go to state 40
INT shift and go to state 42
BOOL shift and go to state 43
STRING shift and go to state 44
SELF shift and go to state 45
O_KEY shift and go to state 46
O_PAR shift and go to state 47
IF shift and go to state 48
WHILE shift and go to state 49
CASE shift and go to state 50
NEW shift and go to state 51
ISVOID shift and go to state 52
DESTRUCTOR shift and go to state 53
NOT shift and go to state 54
LET shift and go to state 56
expression shift and go to state 75
let_expression shift and go to state 55
state 51
(47) expression -> NEW . TYPE_ID
TYPE_ID shift and go to state 76
state 52
(48) expression -> ISVOID . expression
(17) expression -> . ID
(18) expression -> . INT
(19) expression -> . BOOL
(20) expression -> . STRING
(21) expression -> . SELF
(22) expression -> . O_KEY block_list C_KEY
(25) expression -> . ID ASSIGNAMENT expression
(26) expression -> . expression POINT ID O_PAR arguments_list_opt C_PAR
(31) expression -> . expression AT TYPE_ID POINT ID O_PAR arguments_list_opt C_PAR
(32) expression -> . ID O_PAR arguments_list_opt C_PAR
(33) expression -> . expression PLUS expression
(34) expression -> . expression MINUS expression
(35) expression -> . expression STAR expression
(36) expression -> . expression DIV expression
(37) expression -> . expression LESS_THAN expression
(38) expression -> . expression LESS_EQUAL_THAN expression
(39) expression -> . expression EQUAL expression
(40) expression -> . O_PAR expression C_PAR
(41) expression -> . IF expression THEN expression ELSE expression FI
(42) expression -> . WHILE expression LOOP expression POOL
(43) expression -> . CASE expression OF actions_list ESAC
(47) expression -> . NEW TYPE_ID
(48) expression -> . ISVOID expression
(49) expression -> . DESTRUCTOR expression
(50) expression -> . NOT expression
(51) expression -> . let_expression
(52) let_expression -> . LET generate_instances IN expression
ID shift and go to state 40
INT shift and go to state 42
BOOL shift and go to state 43
STRING shift and go to state 44
SELF shift and go to state 45
O_KEY shift and go to state 46
O_PAR shift and go to state 47
IF shift and go to state 48
WHILE shift and go to state 49
CASE shift and go to state 50