This repository has been archived by the owner on Feb 22, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Parser.hs
1502 lines (1165 loc) · 43.2 KB
/
Parser.hs
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
{-# OPTIONS_GHC -w #-}
{-
PLP - Devoir 2
2.4 Analyse syntaxique
@author Nicolas Crausaz
@author Maxime Scharwath
-}
module Parser (Expr(..), parser) where
import Lexer
import qualified Data.Array as Happy_Data_Array
import qualified Data.Bits as Bits
import Control.Applicative(Applicative(..))
import Control.Monad (ap)
-- parser produced by Happy Version 1.20.0
data HappyAbsSyn t4 t5 t6 t7 t8 t9 t10
= HappyTerminal (Token)
| HappyErrorToken Prelude.Int
| HappyAbsSyn4 t4
| HappyAbsSyn5 t5
| HappyAbsSyn6 t6
| HappyAbsSyn7 t7
| HappyAbsSyn8 t8
| HappyAbsSyn9 t9
| HappyAbsSyn10 t10
happyExpList :: Happy_Data_Array.Array Prelude.Int Prelude.Int
happyExpList = Happy_Data_Array.listArray (0,303) ([64512,2816,0,49215,2,57344,63503,1,0,0,0,0,0,0,0,0,0,64,0,4096,0,0,49215,2,4032,176,61440,11267,0,252,11,32768,57407,49159,45071,0,1008,44,64512,2816,0,49215,2,4032,176,61440,11267,0,252,11,16128,704,49152,45071,0,1008,44,64512,2816,0,49215,2,4032,176,0,17400,126,65276,8075,0,256,0,0,0,63488,32387,0,1,0,4,0,0,64,61440,11267,0,65024,8096,16384,0,49152,45071,0,0,16,0,8192,0,0,0,0,0,61440,11267,0,252,11,0,0,0,0,1,0,16,64512,2816,0,7680,0,32768,7,0,480,0,30720,0,0,30,0,1920,0,0,0,0,0,0,0,0,0,6,0,384,0,30720,0,0,30,0,20448,504,1008,44,0,0,0,16256,2032,0,0,16384,0,0,252,11,32768,57375,7,0,0,63488,32515,0,0,0,0,0,57344,64527,61441,11267,0,65024,8128,0,4096,0,0,0,0,0,0,0,0,0
])
{-# NOINLINE happyExpListPerState #-}
happyExpListPerState st =
token_strs_expected
where token_strs = ["error","%dummy","%start_parser","Expr","Exprs","MultiExprs","identifiers","caseOf","caseOfs","varDec","int","bool","identifier","varDecSym","funDecSym","\"(\"","\")\"","\"<\"","\">\"","\"+\"","\"-\"","\"*\"","\"/\"","\"%\"","\"!\"","let","in","case","of","\",\"","end","\"==\"","\"!=\"","\"<=\"","\">=\"","\"&&\"","\"||\"","%eof"]
bit_start = st Prelude.* 38
bit_end = (st Prelude.+ 1) Prelude.* 38
read_bit = readArrayBit happyExpList
bits = Prelude.map read_bit [bit_start..bit_end Prelude.- 1]
bits_indexed = Prelude.zip bits [0..37]
token_strs_expected = Prelude.concatMap f bits_indexed
f (Prelude.False, _) = []
f (Prelude.True, nr) = [token_strs Prelude.!! nr]
action_0 (11) = happyShift action_4
action_0 (12) = happyShift action_5
action_0 (13) = happyShift action_6
action_0 (14) = happyShift action_7
action_0 (15) = happyShift action_8
action_0 (16) = happyShift action_9
action_0 (25) = happyShift action_10
action_0 (26) = happyShift action_11
action_0 (28) = happyShift action_12
action_0 (4) = happyGoto action_13
action_0 (10) = happyGoto action_3
action_0 _ = happyFail (happyExpListPerState 0)
action_1 (11) = happyShift action_4
action_1 (12) = happyShift action_5
action_1 (13) = happyShift action_6
action_1 (14) = happyShift action_7
action_1 (15) = happyShift action_8
action_1 (16) = happyShift action_9
action_1 (25) = happyShift action_10
action_1 (26) = happyShift action_11
action_1 (28) = happyShift action_12
action_1 (4) = happyGoto action_2
action_1 (10) = happyGoto action_3
action_1 _ = happyFail (happyExpListPerState 1)
action_2 (18) = happyShift action_14
action_2 (19) = happyShift action_15
action_2 (20) = happyShift action_16
action_2 (21) = happyShift action_17
action_2 (22) = happyShift action_18
action_2 (23) = happyShift action_19
action_2 (24) = happyShift action_20
action_2 (32) = happyShift action_21
action_2 (33) = happyShift action_22
action_2 (34) = happyShift action_23
action_2 (35) = happyShift action_24
action_2 (36) = happyShift action_25
action_2 (37) = happyShift action_26
action_2 _ = happyFail (happyExpListPerState 2)
action_3 _ = happyReduce_20
action_4 _ = happyReduce_21
action_5 _ = happyReduce_22
action_6 (16) = happyShift action_35
action_6 _ = happyReduce_17
action_7 (13) = happyShift action_34
action_7 _ = happyFail (happyExpListPerState 7)
action_8 (13) = happyShift action_33
action_8 _ = happyFail (happyExpListPerState 8)
action_9 (11) = happyShift action_4
action_9 (12) = happyShift action_5
action_9 (13) = happyShift action_6
action_9 (14) = happyShift action_7
action_9 (15) = happyShift action_8
action_9 (16) = happyShift action_9
action_9 (25) = happyShift action_10
action_9 (26) = happyShift action_11
action_9 (28) = happyShift action_12
action_9 (4) = happyGoto action_31
action_9 (5) = happyGoto action_32
action_9 (10) = happyGoto action_3
action_9 _ = happyFail (happyExpListPerState 9)
action_10 (11) = happyShift action_4
action_10 (12) = happyShift action_5
action_10 (13) = happyShift action_6
action_10 (14) = happyShift action_7
action_10 (15) = happyShift action_8
action_10 (16) = happyShift action_9
action_10 (25) = happyShift action_10
action_10 (26) = happyShift action_11
action_10 (28) = happyShift action_12
action_10 (4) = happyGoto action_30
action_10 (10) = happyGoto action_3
action_10 _ = happyFail (happyExpListPerState 10)
action_11 (11) = happyShift action_4
action_11 (12) = happyShift action_5
action_11 (13) = happyShift action_6
action_11 (14) = happyShift action_7
action_11 (15) = happyShift action_8
action_11 (16) = happyShift action_9
action_11 (25) = happyShift action_10
action_11 (26) = happyShift action_11
action_11 (28) = happyShift action_12
action_11 (4) = happyGoto action_28
action_11 (6) = happyGoto action_29
action_11 (10) = happyGoto action_3
action_11 _ = happyFail (happyExpListPerState 11)
action_12 (11) = happyShift action_4
action_12 (12) = happyShift action_5
action_12 (13) = happyShift action_6
action_12 (14) = happyShift action_7
action_12 (15) = happyShift action_8
action_12 (16) = happyShift action_9
action_12 (25) = happyShift action_10
action_12 (26) = happyShift action_11
action_12 (28) = happyShift action_12
action_12 (4) = happyGoto action_27
action_12 (10) = happyGoto action_3
action_12 _ = happyFail (happyExpListPerState 12)
action_13 (18) = happyShift action_14
action_13 (19) = happyShift action_15
action_13 (20) = happyShift action_16
action_13 (21) = happyShift action_17
action_13 (22) = happyShift action_18
action_13 (23) = happyShift action_19
action_13 (24) = happyShift action_20
action_13 (32) = happyShift action_21
action_13 (33) = happyShift action_22
action_13 (34) = happyShift action_23
action_13 (35) = happyShift action_24
action_13 (36) = happyShift action_25
action_13 (37) = happyShift action_26
action_13 (38) = happyAccept
action_13 _ = happyFail (happyExpListPerState 13)
action_14 (11) = happyShift action_4
action_14 (12) = happyShift action_5
action_14 (13) = happyShift action_6
action_14 (14) = happyShift action_7
action_14 (15) = happyShift action_8
action_14 (16) = happyShift action_9
action_14 (25) = happyShift action_10
action_14 (26) = happyShift action_11
action_14 (28) = happyShift action_12
action_14 (4) = happyGoto action_61
action_14 (10) = happyGoto action_3
action_14 _ = happyFail (happyExpListPerState 14)
action_15 (11) = happyShift action_4
action_15 (12) = happyShift action_5
action_15 (13) = happyShift action_6
action_15 (14) = happyShift action_7
action_15 (15) = happyShift action_8
action_15 (16) = happyShift action_9
action_15 (25) = happyShift action_10
action_15 (26) = happyShift action_11
action_15 (28) = happyShift action_12
action_15 (4) = happyGoto action_60
action_15 (10) = happyGoto action_3
action_15 _ = happyFail (happyExpListPerState 15)
action_16 (11) = happyShift action_4
action_16 (12) = happyShift action_5
action_16 (13) = happyShift action_6
action_16 (14) = happyShift action_7
action_16 (15) = happyShift action_8
action_16 (16) = happyShift action_9
action_16 (25) = happyShift action_10
action_16 (26) = happyShift action_11
action_16 (28) = happyShift action_12
action_16 (4) = happyGoto action_59
action_16 (10) = happyGoto action_3
action_16 _ = happyFail (happyExpListPerState 16)
action_17 (11) = happyShift action_4
action_17 (12) = happyShift action_5
action_17 (13) = happyShift action_6
action_17 (14) = happyShift action_7
action_17 (15) = happyShift action_8
action_17 (16) = happyShift action_9
action_17 (25) = happyShift action_10
action_17 (26) = happyShift action_11
action_17 (28) = happyShift action_12
action_17 (4) = happyGoto action_58
action_17 (10) = happyGoto action_3
action_17 _ = happyFail (happyExpListPerState 17)
action_18 (11) = happyShift action_4
action_18 (12) = happyShift action_5
action_18 (13) = happyShift action_6
action_18 (14) = happyShift action_7
action_18 (15) = happyShift action_8
action_18 (16) = happyShift action_9
action_18 (25) = happyShift action_10
action_18 (26) = happyShift action_11
action_18 (28) = happyShift action_12
action_18 (4) = happyGoto action_57
action_18 (10) = happyGoto action_3
action_18 _ = happyFail (happyExpListPerState 18)
action_19 (11) = happyShift action_4
action_19 (12) = happyShift action_5
action_19 (13) = happyShift action_6
action_19 (14) = happyShift action_7
action_19 (15) = happyShift action_8
action_19 (16) = happyShift action_9
action_19 (25) = happyShift action_10
action_19 (26) = happyShift action_11
action_19 (28) = happyShift action_12
action_19 (4) = happyGoto action_56
action_19 (10) = happyGoto action_3
action_19 _ = happyFail (happyExpListPerState 19)
action_20 (11) = happyShift action_4
action_20 (12) = happyShift action_5
action_20 (13) = happyShift action_6
action_20 (14) = happyShift action_7
action_20 (15) = happyShift action_8
action_20 (16) = happyShift action_9
action_20 (25) = happyShift action_10
action_20 (26) = happyShift action_11
action_20 (28) = happyShift action_12
action_20 (4) = happyGoto action_55
action_20 (10) = happyGoto action_3
action_20 _ = happyFail (happyExpListPerState 20)
action_21 (11) = happyShift action_4
action_21 (12) = happyShift action_5
action_21 (13) = happyShift action_6
action_21 (14) = happyShift action_7
action_21 (15) = happyShift action_8
action_21 (16) = happyShift action_9
action_21 (25) = happyShift action_10
action_21 (26) = happyShift action_11
action_21 (28) = happyShift action_12
action_21 (4) = happyGoto action_54
action_21 (10) = happyGoto action_3
action_21 _ = happyFail (happyExpListPerState 21)
action_22 (11) = happyShift action_4
action_22 (12) = happyShift action_5
action_22 (13) = happyShift action_6
action_22 (14) = happyShift action_7
action_22 (15) = happyShift action_8
action_22 (16) = happyShift action_9
action_22 (25) = happyShift action_10
action_22 (26) = happyShift action_11
action_22 (28) = happyShift action_12
action_22 (4) = happyGoto action_53
action_22 (10) = happyGoto action_3
action_22 _ = happyFail (happyExpListPerState 22)
action_23 (11) = happyShift action_4
action_23 (12) = happyShift action_5
action_23 (13) = happyShift action_6
action_23 (14) = happyShift action_7
action_23 (15) = happyShift action_8
action_23 (16) = happyShift action_9
action_23 (25) = happyShift action_10
action_23 (26) = happyShift action_11
action_23 (28) = happyShift action_12
action_23 (4) = happyGoto action_52
action_23 (10) = happyGoto action_3
action_23 _ = happyFail (happyExpListPerState 23)
action_24 (11) = happyShift action_4
action_24 (12) = happyShift action_5
action_24 (13) = happyShift action_6
action_24 (14) = happyShift action_7
action_24 (15) = happyShift action_8
action_24 (16) = happyShift action_9
action_24 (25) = happyShift action_10
action_24 (26) = happyShift action_11
action_24 (28) = happyShift action_12
action_24 (4) = happyGoto action_51
action_24 (10) = happyGoto action_3
action_24 _ = happyFail (happyExpListPerState 24)
action_25 (11) = happyShift action_4
action_25 (12) = happyShift action_5
action_25 (13) = happyShift action_6
action_25 (14) = happyShift action_7
action_25 (15) = happyShift action_8
action_25 (16) = happyShift action_9
action_25 (25) = happyShift action_10
action_25 (26) = happyShift action_11
action_25 (28) = happyShift action_12
action_25 (4) = happyGoto action_50
action_25 (10) = happyGoto action_3
action_25 _ = happyFail (happyExpListPerState 25)
action_26 (11) = happyShift action_4
action_26 (12) = happyShift action_5
action_26 (13) = happyShift action_6
action_26 (14) = happyShift action_7
action_26 (15) = happyShift action_8
action_26 (16) = happyShift action_9
action_26 (25) = happyShift action_10
action_26 (26) = happyShift action_11
action_26 (28) = happyShift action_12
action_26 (4) = happyGoto action_49
action_26 (10) = happyGoto action_3
action_26 _ = happyFail (happyExpListPerState 26)
action_27 (18) = happyShift action_14
action_27 (19) = happyShift action_15
action_27 (20) = happyShift action_16
action_27 (21) = happyShift action_17
action_27 (22) = happyShift action_18
action_27 (23) = happyShift action_19
action_27 (24) = happyShift action_20
action_27 (29) = happyShift action_48
action_27 (32) = happyShift action_21
action_27 (33) = happyShift action_22
action_27 (34) = happyShift action_23
action_27 (35) = happyShift action_24
action_27 (36) = happyShift action_25
action_27 (37) = happyShift action_26
action_27 (8) = happyGoto action_46
action_27 (9) = happyGoto action_47
action_27 _ = happyFail (happyExpListPerState 27)
action_28 (11) = happyShift action_4
action_28 (12) = happyShift action_5
action_28 (13) = happyShift action_6
action_28 (14) = happyShift action_7
action_28 (15) = happyShift action_8
action_28 (16) = happyShift action_9
action_28 (18) = happyShift action_14
action_28 (19) = happyShift action_15
action_28 (20) = happyShift action_16
action_28 (21) = happyShift action_17
action_28 (22) = happyShift action_18
action_28 (23) = happyShift action_19
action_28 (24) = happyShift action_20
action_28 (25) = happyShift action_10
action_28 (26) = happyShift action_11
action_28 (28) = happyShift action_12
action_28 (32) = happyShift action_21
action_28 (33) = happyShift action_22
action_28 (34) = happyShift action_23
action_28 (35) = happyShift action_24
action_28 (36) = happyShift action_25
action_28 (37) = happyShift action_26
action_28 (4) = happyGoto action_28
action_28 (6) = happyGoto action_45
action_28 (10) = happyGoto action_3
action_28 _ = happyReduce_27
action_29 (27) = happyShift action_44
action_29 _ = happyFail (happyExpListPerState 29)
action_30 (24) = happyShift action_20
action_30 _ = happyReduce_16
action_31 (17) = happyShift action_42
action_31 (18) = happyShift action_14
action_31 (19) = happyShift action_15
action_31 (20) = happyShift action_16
action_31 (21) = happyShift action_17
action_31 (22) = happyShift action_18
action_31 (23) = happyShift action_19
action_31 (24) = happyShift action_20
action_31 (30) = happyShift action_43
action_31 (32) = happyShift action_21
action_31 (33) = happyShift action_22
action_31 (34) = happyShift action_23
action_31 (35) = happyShift action_24
action_31 (36) = happyShift action_25
action_31 (37) = happyShift action_26
action_31 _ = happyFail (happyExpListPerState 31)
action_32 (17) = happyShift action_41
action_32 _ = happyFail (happyExpListPerState 32)
action_33 (13) = happyShift action_40
action_33 (7) = happyGoto action_39
action_33 _ = happyFail (happyExpListPerState 33)
action_34 (27) = happyShift action_38
action_34 _ = happyFail (happyExpListPerState 34)
action_35 (11) = happyShift action_4
action_35 (12) = happyShift action_5
action_35 (13) = happyShift action_6
action_35 (14) = happyShift action_7
action_35 (15) = happyShift action_8
action_35 (16) = happyShift action_9
action_35 (25) = happyShift action_10
action_35 (26) = happyShift action_11
action_35 (28) = happyShift action_12
action_35 (4) = happyGoto action_36
action_35 (5) = happyGoto action_37
action_35 (10) = happyGoto action_3
action_35 _ = happyFail (happyExpListPerState 35)
action_36 (18) = happyShift action_14
action_36 (19) = happyShift action_15
action_36 (20) = happyShift action_16
action_36 (21) = happyShift action_17
action_36 (22) = happyShift action_18
action_36 (23) = happyShift action_19
action_36 (24) = happyShift action_20
action_36 (30) = happyShift action_43
action_36 (32) = happyShift action_21
action_36 (33) = happyShift action_22
action_36 (34) = happyShift action_23
action_36 (35) = happyShift action_24
action_36 (36) = happyShift action_25
action_36 (37) = happyShift action_26
action_36 _ = happyReduce_25
action_37 (17) = happyShift action_70
action_37 _ = happyFail (happyExpListPerState 37)
action_38 (11) = happyShift action_4
action_38 (12) = happyShift action_5
action_38 (13) = happyShift action_6
action_38 (14) = happyShift action_7
action_38 (15) = happyShift action_8
action_38 (16) = happyShift action_9
action_38 (25) = happyShift action_10
action_38 (26) = happyShift action_11
action_38 (28) = happyShift action_12
action_38 (4) = happyGoto action_69
action_38 (10) = happyGoto action_3
action_38 _ = happyFail (happyExpListPerState 38)
action_39 (27) = happyShift action_68
action_39 _ = happyFail (happyExpListPerState 39)
action_40 (30) = happyShift action_67
action_40 _ = happyReduce_29
action_41 _ = happyReduce_15
action_42 _ = happyReduce_14
action_43 (11) = happyShift action_4
action_43 (12) = happyShift action_5
action_43 (13) = happyShift action_6
action_43 (14) = happyShift action_7
action_43 (15) = happyShift action_8
action_43 (16) = happyShift action_9
action_43 (25) = happyShift action_10
action_43 (26) = happyShift action_11
action_43 (28) = happyShift action_12
action_43 (4) = happyGoto action_36
action_43 (5) = happyGoto action_66
action_43 (10) = happyGoto action_3
action_43 _ = happyFail (happyExpListPerState 43)
action_44 (11) = happyShift action_4
action_44 (12) = happyShift action_5
action_44 (13) = happyShift action_6
action_44 (14) = happyShift action_7
action_44 (15) = happyShift action_8
action_44 (16) = happyShift action_9
action_44 (25) = happyShift action_10
action_44 (26) = happyShift action_11
action_44 (28) = happyShift action_12
action_44 (4) = happyGoto action_65
action_44 (10) = happyGoto action_3
action_44 _ = happyFail (happyExpListPerState 44)
action_45 _ = happyReduce_28
action_46 (29) = happyShift action_48
action_46 (8) = happyGoto action_46
action_46 (9) = happyGoto action_64
action_46 _ = happyReduce_32
action_47 (27) = happyShift action_63
action_47 _ = happyFail (happyExpListPerState 47)
action_48 (11) = happyShift action_4
action_48 (12) = happyShift action_5
action_48 (13) = happyShift action_6
action_48 (14) = happyShift action_7
action_48 (15) = happyShift action_8
action_48 (16) = happyShift action_9
action_48 (25) = happyShift action_10
action_48 (26) = happyShift action_11
action_48 (28) = happyShift action_12
action_48 (4) = happyGoto action_62
action_48 (10) = happyGoto action_3
action_48 _ = happyFail (happyExpListPerState 48)
action_49 (20) = happyShift action_16
action_49 (21) = happyShift action_17
action_49 (22) = happyShift action_18
action_49 (23) = happyShift action_19
action_49 (24) = happyShift action_20
action_49 _ = happyReduce_13
action_50 (20) = happyShift action_16
action_50 (21) = happyShift action_17
action_50 (22) = happyShift action_18
action_50 (23) = happyShift action_19
action_50 (24) = happyShift action_20
action_50 _ = happyReduce_12
action_51 (20) = happyShift action_16
action_51 (21) = happyShift action_17
action_51 (22) = happyShift action_18
action_51 (23) = happyShift action_19
action_51 (24) = happyShift action_20
action_51 _ = happyReduce_11
action_52 (20) = happyShift action_16
action_52 (21) = happyShift action_17
action_52 (22) = happyShift action_18
action_52 (23) = happyShift action_19
action_52 (24) = happyShift action_20
action_52 _ = happyReduce_10
action_53 (20) = happyShift action_16
action_53 (21) = happyShift action_17
action_53 (22) = happyShift action_18
action_53 (23) = happyShift action_19
action_53 (24) = happyShift action_20
action_53 _ = happyReduce_9
action_54 (20) = happyShift action_16
action_54 (21) = happyShift action_17
action_54 (22) = happyShift action_18
action_54 (23) = happyShift action_19
action_54 (24) = happyShift action_20
action_54 _ = happyReduce_8
action_55 (18) = happyShift action_14
action_55 (19) = happyShift action_15
action_55 (20) = happyShift action_16
action_55 (21) = happyShift action_17
action_55 (22) = happyShift action_18
action_55 (23) = happyShift action_19
action_55 (24) = happyShift action_20
action_55 (32) = happyShift action_21
action_55 (33) = happyShift action_22
action_55 (34) = happyShift action_23
action_55 (35) = happyShift action_24
action_55 (36) = happyShift action_25
action_55 (37) = happyShift action_26
action_55 _ = happyReduce_5
action_56 (24) = happyShift action_20
action_56 _ = happyReduce_4
action_57 (24) = happyShift action_20
action_57 _ = happyReduce_3
action_58 (22) = happyShift action_18
action_58 (23) = happyShift action_19
action_58 (24) = happyShift action_20
action_58 _ = happyReduce_2
action_59 (22) = happyShift action_18
action_59 (23) = happyShift action_19
action_59 (24) = happyShift action_20
action_59 _ = happyReduce_1
action_60 (20) = happyShift action_16
action_60 (21) = happyShift action_17
action_60 (22) = happyShift action_18
action_60 (23) = happyShift action_19
action_60 (24) = happyShift action_20
action_60 _ = happyReduce_7
action_61 (20) = happyShift action_16
action_61 (21) = happyShift action_17
action_61 (22) = happyShift action_18
action_61 (23) = happyShift action_19
action_61 (24) = happyShift action_20
action_61 _ = happyReduce_6
action_62 (18) = happyShift action_14
action_62 (19) = happyShift action_15
action_62 (20) = happyShift action_16
action_62 (21) = happyShift action_17
action_62 (22) = happyShift action_18
action_62 (23) = happyShift action_19
action_62 (24) = happyShift action_20
action_62 (27) = happyShift action_75
action_62 (32) = happyShift action_21
action_62 (33) = happyShift action_22
action_62 (34) = happyShift action_23
action_62 (35) = happyShift action_24
action_62 (36) = happyShift action_25
action_62 (37) = happyShift action_26
action_62 _ = happyFail (happyExpListPerState 62)
action_63 (11) = happyShift action_4
action_63 (12) = happyShift action_5
action_63 (13) = happyShift action_6
action_63 (14) = happyShift action_7
action_63 (15) = happyShift action_8
action_63 (16) = happyShift action_9
action_63 (25) = happyShift action_10
action_63 (26) = happyShift action_11
action_63 (28) = happyShift action_12
action_63 (4) = happyGoto action_74
action_63 (10) = happyGoto action_3
action_63 _ = happyFail (happyExpListPerState 63)
action_64 _ = happyReduce_33
action_65 (18) = happyShift action_14
action_65 (19) = happyShift action_15
action_65 (20) = happyShift action_16
action_65 (21) = happyShift action_17
action_65 (22) = happyShift action_18
action_65 (23) = happyShift action_19
action_65 (24) = happyShift action_20
action_65 (31) = happyShift action_73
action_65 (32) = happyShift action_21
action_65 (33) = happyShift action_22
action_65 (34) = happyShift action_23
action_65 (35) = happyShift action_24
action_65 (36) = happyShift action_25
action_65 (37) = happyShift action_26
action_65 _ = happyFail (happyExpListPerState 65)
action_66 _ = happyReduce_26
action_67 (13) = happyShift action_40
action_67 (7) = happyGoto action_72
action_67 _ = happyFail (happyExpListPerState 67)
action_68 (11) = happyShift action_4
action_68 (12) = happyShift action_5
action_68 (13) = happyShift action_6
action_68 (14) = happyShift action_7
action_68 (15) = happyShift action_8
action_68 (16) = happyShift action_9
action_68 (25) = happyShift action_10
action_68 (26) = happyShift action_11
action_68 (28) = happyShift action_12
action_68 (4) = happyGoto action_71
action_68 (10) = happyGoto action_3
action_68 _ = happyFail (happyExpListPerState 68)
action_69 (18) = happyShift action_14
action_69 (19) = happyShift action_15
action_69 (20) = happyShift action_16
action_69 (21) = happyShift action_17
action_69 (22) = happyShift action_18
action_69 (23) = happyShift action_19
action_69 (24) = happyShift action_20
action_69 (32) = happyShift action_21
action_69 (33) = happyShift action_22
action_69 (34) = happyShift action_23
action_69 (35) = happyShift action_24
action_69 (36) = happyShift action_25
action_69 (37) = happyShift action_26
action_69 _ = happyReduce_34
action_70 _ = happyReduce_18
action_71 (18) = happyShift action_14
action_71 (19) = happyShift action_15
action_71 (20) = happyShift action_16
action_71 (21) = happyShift action_17
action_71 (22) = happyShift action_18
action_71 (23) = happyShift action_19
action_71 (24) = happyShift action_20
action_71 (31) = happyShift action_78
action_71 (32) = happyShift action_21
action_71 (33) = happyShift action_22
action_71 (34) = happyShift action_23
action_71 (35) = happyShift action_24
action_71 (36) = happyShift action_25
action_71 (37) = happyShift action_26
action_71 _ = happyFail (happyExpListPerState 71)
action_72 _ = happyReduce_30
action_73 _ = happyReduce_24
action_74 (18) = happyShift action_14
action_74 (19) = happyShift action_15
action_74 (20) = happyShift action_16
action_74 (21) = happyShift action_17
action_74 (22) = happyShift action_18
action_74 (23) = happyShift action_19
action_74 (24) = happyShift action_20
action_74 (31) = happyShift action_77
action_74 (32) = happyShift action_21
action_74 (33) = happyShift action_22
action_74 (34) = happyShift action_23
action_74 (35) = happyShift action_24
action_74 (36) = happyShift action_25
action_74 (37) = happyShift action_26
action_74 _ = happyFail (happyExpListPerState 74)
action_75 (11) = happyShift action_4
action_75 (12) = happyShift action_5
action_75 (13) = happyShift action_6
action_75 (14) = happyShift action_7
action_75 (15) = happyShift action_8
action_75 (16) = happyShift action_9
action_75 (25) = happyShift action_10
action_75 (26) = happyShift action_11
action_75 (28) = happyShift action_12
action_75 (4) = happyGoto action_76
action_75 (10) = happyGoto action_3
action_75 _ = happyFail (happyExpListPerState 75)
action_76 (18) = happyShift action_14
action_76 (19) = happyShift action_15
action_76 (20) = happyShift action_16
action_76 (21) = happyShift action_17
action_76 (22) = happyShift action_18
action_76 (23) = happyShift action_19
action_76 (24) = happyShift action_20
action_76 (31) = happyShift action_80
action_76 (32) = happyShift action_21
action_76 (33) = happyShift action_22
action_76 (34) = happyShift action_23
action_76 (35) = happyShift action_24
action_76 (36) = happyShift action_25
action_76 (37) = happyShift action_26
action_76 _ = happyFail (happyExpListPerState 76)
action_77 (31) = happyShift action_79
action_77 _ = happyFail (happyExpListPerState 77)
action_78 _ = happyReduce_19
action_79 _ = happyReduce_23
action_80 _ = happyReduce_31
happyReduce_1 = happySpecReduce_3 4 happyReduction_1
happyReduction_1 (HappyAbsSyn4 happy_var_3)
_
(HappyAbsSyn4 happy_var_1)
= HappyAbsSyn4
(EArithmeticOp "+" happy_var_1 happy_var_3
)
happyReduction_1 _ _ _ = notHappyAtAll
happyReduce_2 = happySpecReduce_3 4 happyReduction_2
happyReduction_2 (HappyAbsSyn4 happy_var_3)
_
(HappyAbsSyn4 happy_var_1)
= HappyAbsSyn4
(EArithmeticOp "-" happy_var_1 happy_var_3
)
happyReduction_2 _ _ _ = notHappyAtAll
happyReduce_3 = happySpecReduce_3 4 happyReduction_3
happyReduction_3 (HappyAbsSyn4 happy_var_3)
_
(HappyAbsSyn4 happy_var_1)
= HappyAbsSyn4
(EArithmeticOp "*" happy_var_1 happy_var_3
)
happyReduction_3 _ _ _ = notHappyAtAll
happyReduce_4 = happySpecReduce_3 4 happyReduction_4
happyReduction_4 (HappyAbsSyn4 happy_var_3)
_
(HappyAbsSyn4 happy_var_1)
= HappyAbsSyn4
(EArithmeticOp "/" happy_var_1 happy_var_3
)
happyReduction_4 _ _ _ = notHappyAtAll
happyReduce_5 = happySpecReduce_3 4 happyReduction_5
happyReduction_5 (HappyAbsSyn4 happy_var_3)
_
(HappyAbsSyn4 happy_var_1)
= HappyAbsSyn4
(EArithmeticOp "%" happy_var_1 happy_var_3
)
happyReduction_5 _ _ _ = notHappyAtAll
happyReduce_6 = happySpecReduce_3 4 happyReduction_6
happyReduction_6 (HappyAbsSyn4 happy_var_3)
_
(HappyAbsSyn4 happy_var_1)
= HappyAbsSyn4
(EComparisonOp "<" happy_var_1 happy_var_3
)
happyReduction_6 _ _ _ = notHappyAtAll
happyReduce_7 = happySpecReduce_3 4 happyReduction_7
happyReduction_7 (HappyAbsSyn4 happy_var_3)
_
(HappyAbsSyn4 happy_var_1)
= HappyAbsSyn4
(EComparisonOp ">" happy_var_1 happy_var_3
)
happyReduction_7 _ _ _ = notHappyAtAll
happyReduce_8 = happySpecReduce_3 4 happyReduction_8
happyReduction_8 (HappyAbsSyn4 happy_var_3)
_
(HappyAbsSyn4 happy_var_1)
= HappyAbsSyn4
(EComparisonOp "==" happy_var_1 happy_var_3
)
happyReduction_8 _ _ _ = notHappyAtAll
happyReduce_9 = happySpecReduce_3 4 happyReduction_9
happyReduction_9 (HappyAbsSyn4 happy_var_3)
_
(HappyAbsSyn4 happy_var_1)
= HappyAbsSyn4
(EComparisonOp "!=" happy_var_1 happy_var_3
)
happyReduction_9 _ _ _ = notHappyAtAll
happyReduce_10 = happySpecReduce_3 4 happyReduction_10
happyReduction_10 (HappyAbsSyn4 happy_var_3)
_
(HappyAbsSyn4 happy_var_1)
= HappyAbsSyn4
(EComparisonOp "<=" happy_var_1 happy_var_3
)
happyReduction_10 _ _ _ = notHappyAtAll
happyReduce_11 = happySpecReduce_3 4 happyReduction_11
happyReduction_11 (HappyAbsSyn4 happy_var_3)
_
(HappyAbsSyn4 happy_var_1)
= HappyAbsSyn4
(EComparisonOp ">=" happy_var_1 happy_var_3
)
happyReduction_11 _ _ _ = notHappyAtAll
happyReduce_12 = happySpecReduce_3 4 happyReduction_12
happyReduction_12 (HappyAbsSyn4 happy_var_3)
_
(HappyAbsSyn4 happy_var_1)
= HappyAbsSyn4
(ERelationalOp "&&" happy_var_1 happy_var_3
)
happyReduction_12 _ _ _ = notHappyAtAll
happyReduce_13 = happySpecReduce_3 4 happyReduction_13
happyReduction_13 (HappyAbsSyn4 happy_var_3)
_
(HappyAbsSyn4 happy_var_1)
= HappyAbsSyn4
(ERelationalOp "||" happy_var_1 happy_var_3
)
happyReduction_13 _ _ _ = notHappyAtAll
happyReduce_14 = happySpecReduce_3 4 happyReduction_14
happyReduction_14 _
(HappyAbsSyn4 happy_var_2)
_
= HappyAbsSyn4
(happy_var_2
)
happyReduction_14 _ _ _ = notHappyAtAll
happyReduce_15 = happySpecReduce_3 4 happyReduction_15
happyReduction_15 _
(HappyAbsSyn5 happy_var_2)
_
= HappyAbsSyn4
(ETuple happy_var_2
)
happyReduction_15 _ _ _ = notHappyAtAll
happyReduce_16 = happySpecReduce_2 4 happyReduction_16
happyReduction_16 (HappyAbsSyn4 happy_var_2)
_
= HappyAbsSyn4
(ENegate happy_var_2
)
happyReduction_16 _ _ = notHappyAtAll
happyReduce_17 = happySpecReduce_1 4 happyReduction_17
happyReduction_17 (HappyTerminal (TIdentifier happy_var_1))
= HappyAbsSyn4
(EVar happy_var_1
)
happyReduction_17 _ = notHappyAtAll
happyReduce_18 = happyReduce 4 4 happyReduction_18
happyReduction_18 (_ `HappyStk`
(HappyAbsSyn5 happy_var_3) `HappyStk`
_ `HappyStk`
(HappyTerminal (TIdentifier happy_var_1)) `HappyStk`
happyRest)
= HappyAbsSyn4
(EFunCall happy_var_1 happy_var_3
) `HappyStk` happyRest
happyReduce_19 = happyReduce 6 4 happyReduction_19
happyReduction_19 (_ `HappyStk`
(HappyAbsSyn4 happy_var_5) `HappyStk`
_ `HappyStk`
(HappyAbsSyn7 happy_var_3) `HappyStk`
(HappyTerminal (TIdentifier happy_var_2)) `HappyStk`
_ `HappyStk`
happyRest)
= HappyAbsSyn4
(EFunDec happy_var_2 happy_var_3 happy_var_5
) `HappyStk` happyRest
happyReduce_20 = happySpecReduce_1 4 happyReduction_20
happyReduction_20 (HappyAbsSyn10 happy_var_1)
= HappyAbsSyn4
(happy_var_1
)
happyReduction_20 _ = notHappyAtAll
happyReduce_21 = happySpecReduce_1 4 happyReduction_21
happyReduction_21 (HappyTerminal (TInt happy_var_1))
= HappyAbsSyn4
(EInt happy_var_1
)
happyReduction_21 _ = notHappyAtAll
happyReduce_22 = happySpecReduce_1 4 happyReduction_22
happyReduction_22 (HappyTerminal (TBool happy_var_1))
= HappyAbsSyn4
(EBool happy_var_1
)
happyReduction_22 _ = notHappyAtAll
happyReduce_23 = happyReduce 7 4 happyReduction_23
happyReduction_23 (_ `HappyStk`
_ `HappyStk`
(HappyAbsSyn4 happy_var_5) `HappyStk`
_ `HappyStk`
(HappyAbsSyn9 happy_var_3) `HappyStk`
(HappyAbsSyn4 happy_var_2) `HappyStk`
_ `HappyStk`
happyRest)
= HappyAbsSyn4
(ECase happy_var_2 happy_var_3 happy_var_5
) `HappyStk` happyRest
happyReduce_24 = happyReduce 5 4 happyReduction_24
happyReduction_24 (_ `HappyStk`
(HappyAbsSyn4 happy_var_4) `HappyStk`
_ `HappyStk`
(HappyAbsSyn6 happy_var_2) `HappyStk`
_ `HappyStk`
happyRest)
= HappyAbsSyn4
(ELet happy_var_2 happy_var_4
) `HappyStk` happyRest
happyReduce_25 = happySpecReduce_1 5 happyReduction_25
happyReduction_25 (HappyAbsSyn4 happy_var_1)
= HappyAbsSyn5
([happy_var_1]
)
happyReduction_25 _ = notHappyAtAll
happyReduce_26 = happySpecReduce_3 5 happyReduction_26
happyReduction_26 (HappyAbsSyn5 happy_var_3)
_
(HappyAbsSyn4 happy_var_1)
= HappyAbsSyn5
(happy_var_1:happy_var_3
)