-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathy.output
More file actions
4478 lines (3241 loc) · 74.9 KB
/
y.output
File metadata and controls
4478 lines (3241 loc) · 74.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
0 $accept : program $end
1 program : ToplevelDecl ';' programR
2 programR : program
3 |
4 ToplevelDecl : Expression
5 | ObjectDecl
6 ObjectDecl : ObjectDecl1
7 | ObjectDecl2
8 ObjectDecl1 : Declaration ObjectDecl2
9 ObjectDecl2 : LOCAL ObjectDecl IN ObjectDecl END ObjectDeclR
10 ObjectDeclR : ';' ObjectDecl
11 | ObjectDecl
12 Declaration : VAL REC Pattern '=' Expression PatternExprR DeclarationR
13 | VAL Pattern '=' Expression PatternExprR DeclarationR
14 | FUN FunHeadingR DeclarationR
15 | TYPE TypeBinding DeclarationR
16 | DATATYPE DatatypeB1R DeclarationR
17 | ABSTYPE DatatypeB1R WITH Declaration1 END DeclarationR
18 | LOCAL Declaration1 IN Declaration1 END DeclarationR
19 Declaration1 : VAL REC Pattern '=' Expression PatternExprR DeclarationR
20 | VAL Pattern '=' Expression PatternExprR DeclarationR
21 | FUN FunHeadingR DeclarationR
22 | TYPE TypeBinding DeclarationR
23 | DATATYPE DatatypeB1R DeclarationR
24 | ABSTYPE DatatypeB1R WITH Declaration1 END DeclarationR
25 | LOCAL Declaration1 IN Declaration1 END DeclarationR
26 |
27 DeclarationR : ';' Declaration
28 | Declaration
29 FunHeadingR : FunHeading ':' Type '=' Expression FunExprR
30 | FunHeading '=' Expression FunExprR
31 FunExprR : '|' FunHeadingR
32 | AND FunHeadingR
33 |
34 DatatypeB1R : DatatypeBinding WITHTYPE TypeBinding
35 | DatatypeBinding
36 PatternExprR : AND VAL REC Pattern '=' Expression PatternExprR
37 |
38 FunHeading : Name AtomicPattern AtomicPatternStar
39 | '(' AtomicPattern INFIXOPERATOR AtomicPattern ')' AtomicPatternStar
40 | AtomicPattern INFIXOPERATOR AtomicPattern
41 AtomicPatternStar : AtomicPattern AtomicPatternStar
42 |
43 TypeBinding : TypeVarList Ident '=' Type TypeBindingR
44 TypeBindingR : AND TypeBinding
45 |
46 DatatypeBinding : TypeVarList Ident '=' IdentOfType DatatypeBindingR
47 DatatypeBindingR : AND DatatypeBinding
48 |
49 IdentOfType : Ident OF Type IdentOfTypeR
50 | Ident IdentOfTypeR
51 IdentOfTypeR : '|' IdentOfType
52 |
53 TypeVarList : TYPEVAR
54 | '(' TYPEVAR TypeVarStar ')'
55 |
56 TypeVarStar : ',' TypeVarStar
57 |
58 Expression : ExpressionY ':' Type
59 | ExpressionY ANDALSO Expression
60 | ExpressionY ORELSE Expression
61 | ExpressionY
62 ExpressionY : InfixExpression
63 | IF Expression THEN Expression ELSE Expression
64 | WHILE Expression DO Expression
65 | CASE Expression OF Expression
66 InfixExpression : AtomicExpressionPlus INFIXOPERATOR InfixExpression
67 | AtomicExpressionPlus
68 AtomicExpressionPlus : AtomicExpression AtomicExpressionStar
69 AtomicExpressionStar : AtomicExpression AtomicExpressionStar
70 |
71 AtomicExpression : CONSTANT
72 | '(' ')'
73 | E2 ')'
74 | E2 ';' ExpressionPlus2 ')'
75 | E2 ',' ExpressionPlus1 ')'
76 | '[' ExpressionPlus1 ']'
77 | '[' ']'
78 | '{' LABEL '=' Expression LabelExpressionR '}'
79 | '{' '}'
80 | '#' LABEL
81 | LET Declaration IN ExpressionPlus2 END
82 E2 : '(' Expression
83 ExpressionPlus1 : Expression ',' ExpressionPlus1
84 | Expression
85 ExpressionPlus2 : Expression ';' ExpressionPlus2
86 | Expression
87 LabelExpressionR : ',' LABEL '=' Expression LabelExpressionR
88 |
89 Pattern : PatternX
90 | PatternY
91 PatternY : PatternX INFIXOPERATOR Pattern
92 | PatternX ':' Type
93 PatternX : AtomicPattern
94 | CompoundName AtomicPattern
95 | Name ':' Type AS Pattern
96 | Name AS Pattern
97 AtomicPattern : '_'
98 | CompoundIdent
99 | CONSTANT
100 | '(' Patterns ')'
101 | '[' Patterns ']'
102 Patterns : Pattern PatternR
103 |
104 PatternR : ',' Pattern PatternR
105 |
106 Type : TypeX
107 | TypeY
108 TypeX : TypeY CompoundIdent
109 | TypeY '*' Type SubTypeR
110 | TypeY "->" Type
111 TypeY : TYPEVAR
112 | CompoundIdent
113 | SubType CompoundIdent
114 | '{' LABEL ':' Type LabelTypeR '}'
115 | '{' '}'
116 | SingleType
117 SingleType : A ')'
118 A : '(' Type
119 SubType : A ',' Type SType ')'
120 SubTypeR : '*' Type
121 |
122 SType : ',' Type SType
123 |
124 LabelTypeR : ',' LABEL ':' Type LabelTypeR
125 |
126 CompoundName : IdentPlus
127 | Name
128 | Ident
129 Name : Ident
130 | OP INFIXOPERATOR
131 CompoundIdent : Ident
132 | IdentPlus
133 IdentPlus : Ident '.' Ident IdentStar
134 IdentStar : '.' Ident IdentStar
135 |
136 Ident : ALPHANUMERICIDENT
state 0
$accept : . program $end (0)
ABSTYPE shift 1
CASE shift 2
DATATYPE shift 3
FUN shift 4
IF shift 5
LET shift 6
LOCAL shift 7
TYPE shift 8
VAL shift 9
WHILE shift 10
CONSTANT shift 11
'(' shift 12
'[' shift 13
'{' shift 14
'#' shift 15
. error
program goto 16
ToplevelDecl goto 17
Expression goto 18
ObjectDecl goto 19
ObjectDecl1 goto 20
ObjectDecl2 goto 21
Declaration goto 22
ExpressionY goto 23
InfixExpression goto 24
AtomicExpressionPlus goto 25
AtomicExpression goto 26
E2 goto 27
state 1
Declaration : ABSTYPE . DatatypeB1R WITH Declaration1 END DeclarationR (17)
TypeVarList : . (55)
TYPEVAR shift 28
'(' shift 29
ALPHANUMERICIDENT reduce 55
DatatypeB1R goto 30
DatatypeBinding goto 31
TypeVarList goto 32
state 2
ExpressionY : CASE . Expression OF Expression (65)
CASE shift 2
IF shift 5
LET shift 6
WHILE shift 10
CONSTANT shift 11
'(' shift 12
'[' shift 13
'{' shift 14
'#' shift 15
. error
Expression goto 33
ExpressionY goto 23
InfixExpression goto 24
AtomicExpressionPlus goto 25
AtomicExpression goto 26
E2 goto 27
state 3
Declaration : DATATYPE . DatatypeB1R DeclarationR (16)
TypeVarList : . (55)
TYPEVAR shift 28
'(' shift 29
ALPHANUMERICIDENT reduce 55
DatatypeB1R goto 34
DatatypeBinding goto 31
TypeVarList goto 32
state 4
Declaration : FUN . FunHeadingR DeclarationR (14)
OP shift 35
CONSTANT shift 36
ALPHANUMERICIDENT shift 37
'(' shift 38
'[' shift 39
'_' shift 40
. error
FunHeadingR goto 41
FunHeading goto 42
Name goto 43
AtomicPattern goto 44
Ident goto 45
CompoundIdent goto 46
IdentPlus goto 47
state 5
ExpressionY : IF . Expression THEN Expression ELSE Expression (63)
CASE shift 2
IF shift 5
LET shift 6
WHILE shift 10
CONSTANT shift 11
'(' shift 12
'[' shift 13
'{' shift 14
'#' shift 15
. error
Expression goto 48
ExpressionY goto 23
InfixExpression goto 24
AtomicExpressionPlus goto 25
AtomicExpression goto 26
E2 goto 27
state 6
AtomicExpression : LET . Declaration IN ExpressionPlus2 END (81)
ABSTYPE shift 1
DATATYPE shift 3
FUN shift 4
LOCAL shift 49
TYPE shift 8
VAL shift 9
. error
Declaration goto 50
state 7
ObjectDecl2 : LOCAL . ObjectDecl IN ObjectDecl END ObjectDeclR (9)
Declaration : LOCAL . Declaration1 IN Declaration1 END DeclarationR (18)
Declaration1 : . (26)
ABSTYPE shift 51
DATATYPE shift 52
FUN shift 53
LOCAL shift 54
TYPE shift 55
VAL shift 56
IN reduce 26
ObjectDecl goto 57
ObjectDecl1 goto 20
ObjectDecl2 goto 21
Declaration goto 22
Declaration1 goto 58
state 8
Declaration : TYPE . TypeBinding DeclarationR (15)
TypeVarList : . (55)
TYPEVAR shift 28
'(' shift 29
ALPHANUMERICIDENT reduce 55
TypeBinding goto 59
TypeVarList goto 60
state 9
Declaration : VAL . REC Pattern '=' Expression PatternExprR DeclarationR (12)
Declaration : VAL . Pattern '=' Expression PatternExprR DeclarationR (13)
OP shift 35
REC shift 61
CONSTANT shift 36
ALPHANUMERICIDENT shift 37
'(' shift 62
'[' shift 39
'_' shift 40
. error
Pattern goto 63
Name goto 64
AtomicPattern goto 65
Ident goto 66
PatternX goto 67
PatternY goto 68
CompoundName goto 69
CompoundIdent goto 46
IdentPlus goto 70
state 10
ExpressionY : WHILE . Expression DO Expression (64)
CASE shift 2
IF shift 5
LET shift 6
WHILE shift 10
CONSTANT shift 11
'(' shift 12
'[' shift 13
'{' shift 14
'#' shift 15
. error
Expression goto 71
ExpressionY goto 23
InfixExpression goto 24
AtomicExpressionPlus goto 25
AtomicExpression goto 26
E2 goto 27
state 11
AtomicExpression : CONSTANT . (71)
. reduce 71
state 12
AtomicExpression : '(' . ')' (72)
E2 : '(' . Expression (82)
CASE shift 2
IF shift 5
LET shift 6
WHILE shift 10
CONSTANT shift 11
'(' shift 12
')' shift 72
'[' shift 13
'{' shift 14
'#' shift 15
. error
Expression goto 73
ExpressionY goto 23
InfixExpression goto 24
AtomicExpressionPlus goto 25
AtomicExpression goto 26
E2 goto 27
state 13
AtomicExpression : '[' . ExpressionPlus1 ']' (76)
AtomicExpression : '[' . ']' (77)
CASE shift 2
IF shift 5
LET shift 6
WHILE shift 10
CONSTANT shift 11
'(' shift 12
'[' shift 13
']' shift 74
'{' shift 14
'#' shift 15
. error
Expression goto 75
ExpressionY goto 23
InfixExpression goto 24
AtomicExpressionPlus goto 25
AtomicExpression goto 26
E2 goto 27
ExpressionPlus1 goto 76
state 14
AtomicExpression : '{' . LABEL '=' Expression LabelExpressionR '}' (78)
AtomicExpression : '{' . '}' (79)
LABEL shift 77
'}' shift 78
. error
state 15
AtomicExpression : '#' . LABEL (80)
LABEL shift 79
. error
state 16
$accept : program . $end (0)
$end accept
state 17
program : ToplevelDecl . ';' programR (1)
';' shift 80
. error
state 18
ToplevelDecl : Expression . (4)
. reduce 4
state 19
ToplevelDecl : ObjectDecl . (5)
. reduce 5
state 20
ObjectDecl : ObjectDecl1 . (6)
. reduce 6
state 21
ObjectDecl : ObjectDecl2 . (7)
. reduce 7
state 22
ObjectDecl1 : Declaration . ObjectDecl2 (8)
LOCAL shift 81
. error
ObjectDecl2 goto 82
23: shift/reduce conflict (shift 83, reduce 61) on ANDALSO
23: shift/reduce conflict (shift 84, reduce 61) on ORELSE
23: shift/reduce conflict (shift 85, reduce 61) on ':'
state 23
Expression : ExpressionY . ':' Type (58)
Expression : ExpressionY . ANDALSO Expression (59)
Expression : ExpressionY . ORELSE Expression (60)
Expression : ExpressionY . (61)
ANDALSO shift 83
ORELSE shift 84
':' shift 85
ABSTYPE reduce 61
AND reduce 61
DATATYPE reduce 61
DO reduce 61
ELSE reduce 61
END reduce 61
FUN reduce 61
LOCAL reduce 61
OF reduce 61
THEN reduce 61
TYPE reduce 61
VAL reduce 61
';' reduce 61
'|' reduce 61
')' reduce 61
',' reduce 61
']' reduce 61
'}' reduce 61
state 24
ExpressionY : InfixExpression . (62)
. reduce 62
state 25
InfixExpression : AtomicExpressionPlus . INFIXOPERATOR InfixExpression (66)
InfixExpression : AtomicExpressionPlus . (67)
INFIXOPERATOR shift 86
ABSTYPE reduce 67
AND reduce 67
ANDALSO reduce 67
DATATYPE reduce 67
DO reduce 67
ELSE reduce 67
END reduce 67
FUN reduce 67
LOCAL reduce 67
OF reduce 67
ORELSE reduce 67
THEN reduce 67
TYPE reduce 67
VAL reduce 67
';' reduce 67
':' reduce 67
'|' reduce 67
')' reduce 67
',' reduce 67
']' reduce 67
'}' reduce 67
state 26
AtomicExpressionPlus : AtomicExpression . AtomicExpressionStar (68)
AtomicExpressionStar : . (70)
LET shift 6
CONSTANT shift 11
'(' shift 12
'[' shift 13
'{' shift 14
'#' shift 15
ABSTYPE reduce 70
AND reduce 70
ANDALSO reduce 70
DATATYPE reduce 70
DO reduce 70
ELSE reduce 70
END reduce 70
FUN reduce 70
LOCAL reduce 70
OF reduce 70
ORELSE reduce 70
THEN reduce 70
TYPE reduce 70
VAL reduce 70
INFIXOPERATOR reduce 70
';' reduce 70
':' reduce 70
'|' reduce 70
')' reduce 70
',' reduce 70
']' reduce 70
'}' reduce 70
AtomicExpression goto 87
AtomicExpressionStar goto 88
E2 goto 27
state 27
AtomicExpression : E2 . ')' (73)
AtomicExpression : E2 . ';' ExpressionPlus2 ')' (74)
AtomicExpression : E2 . ',' ExpressionPlus1 ')' (75)
';' shift 89
')' shift 90
',' shift 91
. error
state 28
TypeVarList : TYPEVAR . (53)
. reduce 53
state 29
TypeVarList : '(' . TYPEVAR TypeVarStar ')' (54)
TYPEVAR shift 92
. error
state 30
Declaration : ABSTYPE DatatypeB1R . WITH Declaration1 END DeclarationR (17)
WITH shift 93
. error
state 31
DatatypeB1R : DatatypeBinding . WITHTYPE TypeBinding (34)
DatatypeB1R : DatatypeBinding . (35)
WITHTYPE shift 94
ABSTYPE reduce 35
DATATYPE reduce 35
FUN reduce 35
LOCAL reduce 35
TYPE reduce 35
VAL reduce 35
WITH reduce 35
';' reduce 35
state 32
DatatypeBinding : TypeVarList . Ident '=' IdentOfType DatatypeBindingR (46)
ALPHANUMERICIDENT shift 37
. error
Ident goto 95
state 33
ExpressionY : CASE Expression . OF Expression (65)
OF shift 96
. error
state 34
Declaration : DATATYPE DatatypeB1R . DeclarationR (16)
ABSTYPE shift 1
DATATYPE shift 3
FUN shift 4
LOCAL shift 49
TYPE shift 8
VAL shift 9
';' shift 97
. error
Declaration goto 98
DeclarationR goto 99
state 35
Name : OP . INFIXOPERATOR (130)
INFIXOPERATOR shift 100
. error
state 36
AtomicPattern : CONSTANT . (99)
. reduce 99
state 37
Ident : ALPHANUMERICIDENT . (136)
. reduce 136
state 38
FunHeading : '(' . AtomicPattern INFIXOPERATOR AtomicPattern ')' AtomicPatternStar (39)
AtomicPattern : '(' . Patterns ')' (100)
Patterns : . (103)
OP shift 35
CONSTANT shift 36
ALPHANUMERICIDENT shift 37
'(' shift 62
'[' shift 39
'_' shift 40
')' reduce 103
Pattern goto 101
Name goto 64
AtomicPattern goto 102
Ident goto 66
PatternX goto 67
PatternY goto 68
CompoundName goto 69
CompoundIdent goto 46
Patterns goto 103
IdentPlus goto 70
state 39
AtomicPattern : '[' . Patterns ']' (101)
Patterns : . (103)
OP shift 35
CONSTANT shift 36
ALPHANUMERICIDENT shift 37
'(' shift 62
'[' shift 39
'_' shift 40
']' reduce 103
Pattern goto 101
Name goto 64
AtomicPattern goto 65
Ident goto 66
PatternX goto 67
PatternY goto 68
CompoundName goto 69
CompoundIdent goto 46
Patterns goto 104
IdentPlus goto 70
state 40
AtomicPattern : '_' . (97)
. reduce 97
state 41
Declaration : FUN FunHeadingR . DeclarationR (14)
ABSTYPE shift 1
DATATYPE shift 3
FUN shift 4
LOCAL shift 49
TYPE shift 8
VAL shift 9
';' shift 97
. error
Declaration goto 98
DeclarationR goto 105
state 42
FunHeadingR : FunHeading . ':' Type '=' Expression FunExprR (29)
FunHeadingR : FunHeading . '=' Expression FunExprR (30)
'=' shift 106
':' shift 107
. error
state 43
FunHeading : Name . AtomicPattern AtomicPatternStar (38)
CONSTANT shift 36
ALPHANUMERICIDENT shift 37
'(' shift 62
'[' shift 39
'_' shift 40
. error
AtomicPattern goto 108
Ident goto 109
CompoundIdent goto 46
IdentPlus goto 47
state 44
FunHeading : AtomicPattern . INFIXOPERATOR AtomicPattern (40)
INFIXOPERATOR shift 110
. error
state 45
Name : Ident . (129)
CompoundIdent : Ident . (131)
IdentPlus : Ident . '.' Ident IdentStar (133)
'.' shift 111
CONSTANT reduce 129
INFIXOPERATOR reduce 131
ALPHANUMERICIDENT reduce 129
'(' reduce 129
'[' reduce 129
'_' reduce 129
state 46
AtomicPattern : CompoundIdent . (98)
. reduce 98
state 47
CompoundIdent : IdentPlus . (132)
. reduce 132
state 48
ExpressionY : IF Expression . THEN Expression ELSE Expression (63)
THEN shift 112
. error
state 49
Declaration : LOCAL . Declaration1 IN Declaration1 END DeclarationR (18)
Declaration1 : . (26)
ABSTYPE shift 113
DATATYPE shift 114
FUN shift 115
LOCAL shift 116
TYPE shift 117
VAL shift 118
IN reduce 26
Declaration1 goto 58
state 50
AtomicExpression : LET Declaration . IN ExpressionPlus2 END (81)
IN shift 119
. error
state 51
Declaration : ABSTYPE . DatatypeB1R WITH Declaration1 END DeclarationR (17)
Declaration1 : ABSTYPE . DatatypeB1R WITH Declaration1 END DeclarationR (24)
TypeVarList : . (55)
TYPEVAR shift 28
'(' shift 29
ALPHANUMERICIDENT reduce 55
DatatypeB1R goto 120
DatatypeBinding goto 31
TypeVarList goto 32
state 52
Declaration : DATATYPE . DatatypeB1R DeclarationR (16)
Declaration1 : DATATYPE . DatatypeB1R DeclarationR (23)
TypeVarList : . (55)
TYPEVAR shift 28
'(' shift 29
ALPHANUMERICIDENT reduce 55
DatatypeB1R goto 121
DatatypeBinding goto 31
TypeVarList goto 32
state 53
Declaration : FUN . FunHeadingR DeclarationR (14)
Declaration1 : FUN . FunHeadingR DeclarationR (21)
OP shift 35
CONSTANT shift 36
ALPHANUMERICIDENT shift 37
'(' shift 38
'[' shift 39
'_' shift 40
. error
FunHeadingR goto 122
FunHeading goto 42
Name goto 43
AtomicPattern goto 44
Ident goto 45
CompoundIdent goto 46
IdentPlus goto 47
state 54
ObjectDecl2 : LOCAL . ObjectDecl IN ObjectDecl END ObjectDeclR (9)
Declaration : LOCAL . Declaration1 IN Declaration1 END DeclarationR (18)
Declaration1 : LOCAL . Declaration1 IN Declaration1 END DeclarationR (25)
Declaration1 : . (26)
ABSTYPE shift 51
DATATYPE shift 52
FUN shift 53
LOCAL shift 54
TYPE shift 55
VAL shift 56
IN reduce 26
ObjectDecl goto 57
ObjectDecl1 goto 20
ObjectDecl2 goto 21
Declaration goto 22
Declaration1 goto 123
state 55
Declaration : TYPE . TypeBinding DeclarationR (15)
Declaration1 : TYPE . TypeBinding DeclarationR (22)
TypeVarList : . (55)
TYPEVAR shift 28
'(' shift 29
ALPHANUMERICIDENT reduce 55
TypeBinding goto 124
TypeVarList goto 60
state 56
Declaration : VAL . REC Pattern '=' Expression PatternExprR DeclarationR (12)
Declaration : VAL . Pattern '=' Expression PatternExprR DeclarationR (13)
Declaration1 : VAL . REC Pattern '=' Expression PatternExprR DeclarationR (19)
Declaration1 : VAL . Pattern '=' Expression PatternExprR DeclarationR (20)
OP shift 35
REC shift 125
CONSTANT shift 36
ALPHANUMERICIDENT shift 37
'(' shift 62
'[' shift 39
'_' shift 40
. error
Pattern goto 126
Name goto 64
AtomicPattern goto 65
Ident goto 66
PatternX goto 67
PatternY goto 68
CompoundName goto 69
CompoundIdent goto 46
IdentPlus goto 70
state 57
ObjectDecl2 : LOCAL ObjectDecl . IN ObjectDecl END ObjectDeclR (9)
IN shift 127
. error