forked from codeon/cmlex
-
Notifications
You must be signed in to change notification settings - Fork 0
/
parsemain-hs.cmyacc.sml
2146 lines (1738 loc) · 71.4 KB
/
parsemain-hs.cmyacc.sml
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
functor ParseMainFunHs
(structure Streamable : STREAMABLE
structure Arg :
sig
type string
type int
type intlist
type numpairs
type charset
type charsets
type regexp
type regexps
type arm
type arms
type qident
type directive
type directives
val cons_directives : directive * directives -> directives
val nil_directives : unit -> directives
val function_directive : string * string * arms -> directive
val set_directive : string * charset -> directive
val regexp_directive : string * regexp -> directive
val alphabet_directive : int -> directive
val monadic_directive : unit -> directive
val name_directive : qident -> directive
val cons_qident : string * qident -> qident
val sing_qident : string -> qident
val cons_arms : arm * arms -> arms
val sing_arms : arm -> arms
val sole_arm : regexp * string -> arm
val cons_regexps : regexp * regexps -> regexps
val nil_regexps : unit -> regexps
val eos_regexp : unit -> regexp
val repeat_regexp : regexp * int * int -> regexp
val geq_regexp : regexp * int -> regexp
val equal_regexp : regexp * int -> regexp
val plus_regexp : regexp -> regexp
val closure_regexp : regexp -> regexp
val option_regexp : regexp -> regexp
val union_regexp : regexps -> regexp
val seq_regexp : regexps -> regexp
val concat_regexp : regexps -> regexp
val empty_regexp : unit -> regexp
val epsilon_regexp : unit -> regexp
val any_regexp : unit -> regexp
val string_regexp : intlist -> regexp
val number_regexp : int -> regexp
val ident_regexp : string -> regexp
val cons_charsets : charset * charsets -> charsets
val nil_charsets : unit -> charsets
val any_charset : unit -> charset
val comp_charset : charsets -> charset
val diff_charset : charset * charsets -> charset
val intersect_charset : charsets -> charset
val union_charset : charsets -> charset
val empty_charset : unit -> charset
val range_charset : numpairs -> charset
val number_charset : int -> charset
val ident_charset : string -> charset
val cons_numpairs : int * int * numpairs -> numpairs
val nil_numpairs : unit -> numpairs
val number : int -> int
val ident : string -> string
datatype terminal =
LIDENT of string
| UIDENT of string
| NUMBER of int
| STRING of intlist
| ALPHABET
| AND
| ANY
| ARROW
| COLON
| DOT
| EOS
| EMPT
| EPSILON
| EQUAL
| FUNCTION
| GEQ
| LPAREN
| MINUS
| MONADIC
| NAME
| OR
| PLUS
| QUESTION
| RANGE
| REGEXP
| REPEAT
| RPAREN
| SEQ
| SET
| STAR
| TILDE
val error : terminal Streamable.t -> exn
end)
:>
sig
val parse : Arg.terminal Streamable.t -> Arg.directives * Arg.terminal Streamable.t
end
=
(*
State 0:
start -> . Directives / 0
38 : Directive -> . NAME QIdent / 1
39 : Directive -> . MONADIC / 1
40 : Directive -> . ALPHABET Number / 1
41 : Directive -> . REGEXP Ident EQUAL Regexp / 1
42 : Directive -> . SET Ident EQUAL Charset / 1
43 : Directive -> . FUNCTION Ident COLON Ident EQUAL Arms / 1
44 : Directives -> . / 0
45 : Directives -> . Directive Directives / 0
$ => reduce 44
ALPHABET => shift 4
FUNCTION => shift 3
MONADIC => shift 2
NAME => shift 7
REGEXP => shift 6
SET => shift 5
Directive => goto 1
Directives => goto 8
-----
State 1:
38 : Directive -> . NAME QIdent / 1
39 : Directive -> . MONADIC / 1
40 : Directive -> . ALPHABET Number / 1
41 : Directive -> . REGEXP Ident EQUAL Regexp / 1
42 : Directive -> . SET Ident EQUAL Charset / 1
43 : Directive -> . FUNCTION Ident COLON Ident EQUAL Arms / 1
44 : Directives -> . / 0
45 : Directives -> . Directive Directives / 0
45 : Directives -> Directive . Directives / 0
$ => reduce 44
ALPHABET => shift 4
FUNCTION => shift 3
MONADIC => shift 2
NAME => shift 7
REGEXP => shift 6
SET => shift 5
Directive => goto 1
Directives => goto 9
-----
State 2:
39 : Directive -> MONADIC . / 1
$ => reduce 39
ALPHABET => reduce 39
FUNCTION => reduce 39
MONADIC => reduce 39
NAME => reduce 39
REGEXP => reduce 39
SET => reduce 39
-----
State 3:
0 : Ident -> . LIDENT / 2
43 : Directive -> FUNCTION . Ident COLON Ident EQUAL Arms / 1
LIDENT => shift 11
Ident => goto 10
-----
State 4:
1 : Number -> . NUMBER / 1
40 : Directive -> ALPHABET . Number / 1
NUMBER => shift 13
Number => goto 12
-----
State 5:
0 : Ident -> . LIDENT / 3
42 : Directive -> SET . Ident EQUAL Charset / 1
LIDENT => shift 11
Ident => goto 14
-----
State 6:
0 : Ident -> . LIDENT / 3
41 : Directive -> REGEXP . Ident EQUAL Regexp / 1
LIDENT => shift 11
Ident => goto 15
-----
State 7:
36 : QIdent -> . UIDENT / 1
37 : QIdent -> . UIDENT DOT QIdent / 1
38 : Directive -> NAME . QIdent / 1
UIDENT => shift 17
QIdent => goto 16
-----
State 8:
start -> Directives . / 0
$ => accept
-----
State 9:
45 : Directives -> Directive Directives . / 0
$ => reduce 45
-----
State 10:
43 : Directive -> FUNCTION Ident . COLON Ident EQUAL Arms / 1
COLON => shift 18
-----
State 11:
0 : Ident -> LIDENT . / 4
$ => reduce 0
LIDENT => reduce 0
NUMBER => reduce 0
STRING => reduce 0
ALPHABET => reduce 0
ANY => reduce 0
ARROW => reduce 0
COLON => reduce 0
EOS => reduce 0
EMPT => reduce 0
EPSILON => reduce 0
EQUAL => reduce 0
FUNCTION => reduce 0
LPAREN => reduce 0
MONADIC => reduce 0
NAME => reduce 0
REGEXP => reduce 0
RPAREN => reduce 0
SET => reduce 0
-----
State 12:
40 : Directive -> ALPHABET Number . / 1
$ => reduce 40
ALPHABET => reduce 40
FUNCTION => reduce 40
MONADIC => reduce 40
NAME => reduce 40
REGEXP => reduce 40
SET => reduce 40
-----
State 13:
1 : Number -> NUMBER . / 5
$ => reduce 1
LIDENT => reduce 1
NUMBER => reduce 1
STRING => reduce 1
ALPHABET => reduce 1
ANY => reduce 1
ARROW => reduce 1
EOS => reduce 1
EMPT => reduce 1
EPSILON => reduce 1
FUNCTION => reduce 1
LPAREN => reduce 1
MONADIC => reduce 1
NAME => reduce 1
REGEXP => reduce 1
RPAREN => reduce 1
SET => reduce 1
-----
State 14:
42 : Directive -> SET Ident . EQUAL Charset / 1
EQUAL => shift 19
-----
State 15:
41 : Directive -> REGEXP Ident . EQUAL Regexp / 1
EQUAL => shift 20
-----
State 16:
38 : Directive -> NAME QIdent . / 1
$ => reduce 38
ALPHABET => reduce 38
FUNCTION => reduce 38
MONADIC => reduce 38
NAME => reduce 38
REGEXP => reduce 38
SET => reduce 38
-----
State 17:
36 : QIdent -> UIDENT . / 1
37 : QIdent -> UIDENT . DOT QIdent / 1
$ => reduce 36
ALPHABET => reduce 36
DOT => shift 21
FUNCTION => reduce 36
MONADIC => reduce 36
NAME => reduce 36
REGEXP => reduce 36
SET => reduce 36
-----
State 18:
0 : Ident -> . LIDENT / 3
43 : Directive -> FUNCTION Ident COLON . Ident EQUAL Arms / 1
LIDENT => shift 11
Ident => goto 22
-----
State 19:
0 : Ident -> . LIDENT / 1
1 : Number -> . NUMBER / 1
4 : Charset -> . Ident / 1
5 : Charset -> . Number / 1
6 : Charset -> . LPAREN RANGE NumPairs RPAREN / 1
7 : Charset -> . EMPT / 1
8 : Charset -> . LPAREN OR Charsets RPAREN / 1
9 : Charset -> . LPAREN AND Charsets RPAREN / 1
10 : Charset -> . LPAREN MINUS Charset Charsets RPAREN / 1
11 : Charset -> . LPAREN TILDE Charsets RPAREN / 1
12 : Charset -> . ANY / 1
42 : Directive -> SET Ident EQUAL . Charset / 1
LIDENT => shift 11
NUMBER => shift 13
ANY => shift 26
EMPT => shift 25
LPAREN => shift 28
Ident => goto 27
Number => goto 24
Charset => goto 23
-----
State 20:
0 : Ident -> . LIDENT / 1
1 : Number -> . NUMBER / 1
15 : Regexp -> . Ident / 1
16 : Regexp -> . Number / 1
17 : Regexp -> . STRING / 1
18 : Regexp -> . ANY / 1
19 : Regexp -> . EPSILON / 1
20 : Regexp -> . EMPT / 1
21 : Regexp -> . LPAREN COLON Regexps RPAREN / 1
22 : Regexp -> . LPAREN SEQ Regexps RPAREN / 1
23 : Regexp -> . LPAREN OR Regexps RPAREN / 1
24 : Regexp -> . LPAREN QUESTION Regexp RPAREN / 1
25 : Regexp -> . LPAREN STAR Regexp RPAREN / 1
26 : Regexp -> . LPAREN PLUS Regexp RPAREN / 1
27 : Regexp -> . LPAREN EQUAL Number Regexp RPAREN / 1
28 : Regexp -> . LPAREN GEQ Number Regexp RPAREN / 1
29 : Regexp -> . LPAREN REPEAT Number Number Regexp RPAREN / 1
30 : Regexp -> . EOS / 1
41 : Directive -> REGEXP Ident EQUAL . Regexp / 1
LIDENT => shift 11
NUMBER => shift 13
STRING => shift 33
ANY => shift 32
EOS => shift 31
EMPT => shift 36
EPSILON => shift 37
LPAREN => shift 35
Ident => goto 34
Number => goto 30
Regexp => goto 29
-----
State 21:
36 : QIdent -> . UIDENT / 1
37 : QIdent -> . UIDENT DOT QIdent / 1
37 : QIdent -> UIDENT DOT . QIdent / 1
UIDENT => shift 17
QIdent => goto 38
-----
State 22:
43 : Directive -> FUNCTION Ident COLON Ident . EQUAL Arms / 1
EQUAL => shift 39
-----
State 23:
42 : Directive -> SET Ident EQUAL Charset . / 1
$ => reduce 42
ALPHABET => reduce 42
FUNCTION => reduce 42
MONADIC => reduce 42
NAME => reduce 42
REGEXP => reduce 42
SET => reduce 42
-----
State 24:
5 : Charset -> Number . / 6
$ => reduce 5
LIDENT => reduce 5
NUMBER => reduce 5
ALPHABET => reduce 5
ANY => reduce 5
EMPT => reduce 5
FUNCTION => reduce 5
LPAREN => reduce 5
MONADIC => reduce 5
NAME => reduce 5
REGEXP => reduce 5
RPAREN => reduce 5
SET => reduce 5
-----
State 25:
7 : Charset -> EMPT . / 6
$ => reduce 7
LIDENT => reduce 7
NUMBER => reduce 7
ALPHABET => reduce 7
ANY => reduce 7
EMPT => reduce 7
FUNCTION => reduce 7
LPAREN => reduce 7
MONADIC => reduce 7
NAME => reduce 7
REGEXP => reduce 7
RPAREN => reduce 7
SET => reduce 7
-----
State 26:
12 : Charset -> ANY . / 6
$ => reduce 12
LIDENT => reduce 12
NUMBER => reduce 12
ALPHABET => reduce 12
ANY => reduce 12
EMPT => reduce 12
FUNCTION => reduce 12
LPAREN => reduce 12
MONADIC => reduce 12
NAME => reduce 12
REGEXP => reduce 12
RPAREN => reduce 12
SET => reduce 12
-----
State 27:
4 : Charset -> Ident . / 6
$ => reduce 4
LIDENT => reduce 4
NUMBER => reduce 4
ALPHABET => reduce 4
ANY => reduce 4
EMPT => reduce 4
FUNCTION => reduce 4
LPAREN => reduce 4
MONADIC => reduce 4
NAME => reduce 4
REGEXP => reduce 4
RPAREN => reduce 4
SET => reduce 4
-----
State 28:
6 : Charset -> LPAREN . RANGE NumPairs RPAREN / 6
8 : Charset -> LPAREN . OR Charsets RPAREN / 6
9 : Charset -> LPAREN . AND Charsets RPAREN / 6
10 : Charset -> LPAREN . MINUS Charset Charsets RPAREN / 6
11 : Charset -> LPAREN . TILDE Charsets RPAREN / 6
AND => shift 44
MINUS => shift 43
OR => shift 42
RANGE => shift 41
TILDE => shift 40
-----
State 29:
41 : Directive -> REGEXP Ident EQUAL Regexp . / 1
$ => reduce 41
ALPHABET => reduce 41
FUNCTION => reduce 41
MONADIC => reduce 41
NAME => reduce 41
REGEXP => reduce 41
SET => reduce 41
-----
State 30:
16 : Regexp -> Number . / 5
$ => reduce 16
LIDENT => reduce 16
NUMBER => reduce 16
STRING => reduce 16
ALPHABET => reduce 16
ANY => reduce 16
ARROW => reduce 16
EOS => reduce 16
EMPT => reduce 16
EPSILON => reduce 16
FUNCTION => reduce 16
LPAREN => reduce 16
MONADIC => reduce 16
NAME => reduce 16
REGEXP => reduce 16
RPAREN => reduce 16
SET => reduce 16
-----
State 31:
30 : Regexp -> EOS . / 5
$ => reduce 30
LIDENT => reduce 30
NUMBER => reduce 30
STRING => reduce 30
ALPHABET => reduce 30
ANY => reduce 30
ARROW => reduce 30
EOS => reduce 30
EMPT => reduce 30
EPSILON => reduce 30
FUNCTION => reduce 30
LPAREN => reduce 30
MONADIC => reduce 30
NAME => reduce 30
REGEXP => reduce 30
RPAREN => reduce 30
SET => reduce 30
-----
State 32:
18 : Regexp -> ANY . / 5
$ => reduce 18
LIDENT => reduce 18
NUMBER => reduce 18
STRING => reduce 18
ALPHABET => reduce 18
ANY => reduce 18
ARROW => reduce 18
EOS => reduce 18
EMPT => reduce 18
EPSILON => reduce 18
FUNCTION => reduce 18
LPAREN => reduce 18
MONADIC => reduce 18
NAME => reduce 18
REGEXP => reduce 18
RPAREN => reduce 18
SET => reduce 18
-----
State 33:
17 : Regexp -> STRING . / 5
$ => reduce 17
LIDENT => reduce 17
NUMBER => reduce 17
STRING => reduce 17
ALPHABET => reduce 17
ANY => reduce 17
ARROW => reduce 17
EOS => reduce 17
EMPT => reduce 17
EPSILON => reduce 17
FUNCTION => reduce 17
LPAREN => reduce 17
MONADIC => reduce 17
NAME => reduce 17
REGEXP => reduce 17
RPAREN => reduce 17
SET => reduce 17
-----
State 34:
15 : Regexp -> Ident . / 5
$ => reduce 15
LIDENT => reduce 15
NUMBER => reduce 15
STRING => reduce 15
ALPHABET => reduce 15
ANY => reduce 15
ARROW => reduce 15
EOS => reduce 15
EMPT => reduce 15
EPSILON => reduce 15
FUNCTION => reduce 15
LPAREN => reduce 15
MONADIC => reduce 15
NAME => reduce 15
REGEXP => reduce 15
RPAREN => reduce 15
SET => reduce 15
-----
State 35:
21 : Regexp -> LPAREN . COLON Regexps RPAREN / 5
22 : Regexp -> LPAREN . SEQ Regexps RPAREN / 5
23 : Regexp -> LPAREN . OR Regexps RPAREN / 5
24 : Regexp -> LPAREN . QUESTION Regexp RPAREN / 5
25 : Regexp -> LPAREN . STAR Regexp RPAREN / 5
26 : Regexp -> LPAREN . PLUS Regexp RPAREN / 5
27 : Regexp -> LPAREN . EQUAL Number Regexp RPAREN / 5
28 : Regexp -> LPAREN . GEQ Number Regexp RPAREN / 5
29 : Regexp -> LPAREN . REPEAT Number Number Regexp RPAREN / 5
COLON => shift 48
EQUAL => shift 47
GEQ => shift 46
OR => shift 50
PLUS => shift 49
QUESTION => shift 51
REPEAT => shift 45
SEQ => shift 52
STAR => shift 53
-----
State 36:
20 : Regexp -> EMPT . / 5
$ => reduce 20
LIDENT => reduce 20
NUMBER => reduce 20
STRING => reduce 20
ALPHABET => reduce 20
ANY => reduce 20
ARROW => reduce 20
EOS => reduce 20
EMPT => reduce 20
EPSILON => reduce 20
FUNCTION => reduce 20
LPAREN => reduce 20
MONADIC => reduce 20
NAME => reduce 20
REGEXP => reduce 20
RPAREN => reduce 20
SET => reduce 20
-----
State 37:
19 : Regexp -> EPSILON . / 5
$ => reduce 19
LIDENT => reduce 19
NUMBER => reduce 19
STRING => reduce 19
ALPHABET => reduce 19
ANY => reduce 19
ARROW => reduce 19
EOS => reduce 19
EMPT => reduce 19
EPSILON => reduce 19
FUNCTION => reduce 19
LPAREN => reduce 19
MONADIC => reduce 19
NAME => reduce 19
REGEXP => reduce 19
RPAREN => reduce 19
SET => reduce 19
-----
State 38:
37 : QIdent -> UIDENT DOT QIdent . / 1
$ => reduce 37
ALPHABET => reduce 37
FUNCTION => reduce 37
MONADIC => reduce 37
NAME => reduce 37
REGEXP => reduce 37
SET => reduce 37
-----
State 39:
0 : Ident -> . LIDENT / 7
1 : Number -> . NUMBER / 7
15 : Regexp -> . Ident / 7
16 : Regexp -> . Number / 7
17 : Regexp -> . STRING / 7
18 : Regexp -> . ANY / 7
19 : Regexp -> . EPSILON / 7
20 : Regexp -> . EMPT / 7
21 : Regexp -> . LPAREN COLON Regexps RPAREN / 7
22 : Regexp -> . LPAREN SEQ Regexps RPAREN / 7
23 : Regexp -> . LPAREN OR Regexps RPAREN / 7
24 : Regexp -> . LPAREN QUESTION Regexp RPAREN / 7
25 : Regexp -> . LPAREN STAR Regexp RPAREN / 7
26 : Regexp -> . LPAREN PLUS Regexp RPAREN / 7
27 : Regexp -> . LPAREN EQUAL Number Regexp RPAREN / 7
28 : Regexp -> . LPAREN GEQ Number Regexp RPAREN / 7
29 : Regexp -> . LPAREN REPEAT Number Number Regexp RPAREN / 7
30 : Regexp -> . EOS / 7
33 : Arm -> . Regexp ARROW Ident / 8
34 : Arms -> . Arm / 1
35 : Arms -> . Arm Arms / 1
43 : Directive -> FUNCTION Ident COLON Ident EQUAL . Arms / 1
LIDENT => shift 11
NUMBER => shift 13
STRING => shift 33
ANY => shift 32
EOS => shift 31
EMPT => shift 36
EPSILON => shift 37
LPAREN => shift 35
Ident => goto 34
Number => goto 30
Regexp => goto 56
Arm => goto 55
Arms => goto 54
-----
State 40:
0 : Ident -> . LIDENT / 9
1 : Number -> . NUMBER / 9
4 : Charset -> . Ident / 9
5 : Charset -> . Number / 9
6 : Charset -> . LPAREN RANGE NumPairs RPAREN / 9
7 : Charset -> . EMPT / 9
8 : Charset -> . LPAREN OR Charsets RPAREN / 9
9 : Charset -> . LPAREN AND Charsets RPAREN / 9
10 : Charset -> . LPAREN MINUS Charset Charsets RPAREN / 9
11 : Charset -> . LPAREN TILDE Charsets RPAREN / 9
11 : Charset -> LPAREN TILDE . Charsets RPAREN / 6
12 : Charset -> . ANY / 9
13 : Charsets -> . / 10
14 : Charsets -> . Charset Charsets / 10
LIDENT => shift 11
NUMBER => shift 13
ANY => shift 26
EMPT => shift 25
LPAREN => shift 28
RPAREN => reduce 13
Ident => goto 27
Number => goto 24
Charset => goto 57
Charsets => goto 58
-----
State 41:
1 : Number -> . NUMBER / 11
2 : NumPairs -> . / 10
3 : NumPairs -> . Number Number NumPairs / 10
6 : Charset -> LPAREN RANGE . NumPairs RPAREN / 6
NUMBER => shift 13
RPAREN => reduce 2
Number => goto 60
NumPairs => goto 59
-----
State 42:
0 : Ident -> . LIDENT / 9
1 : Number -> . NUMBER / 9
4 : Charset -> . Ident / 9
5 : Charset -> . Number / 9
6 : Charset -> . LPAREN RANGE NumPairs RPAREN / 9
7 : Charset -> . EMPT / 9
8 : Charset -> . LPAREN OR Charsets RPAREN / 9
8 : Charset -> LPAREN OR . Charsets RPAREN / 6
9 : Charset -> . LPAREN AND Charsets RPAREN / 9
10 : Charset -> . LPAREN MINUS Charset Charsets RPAREN / 9
11 : Charset -> . LPAREN TILDE Charsets RPAREN / 9
12 : Charset -> . ANY / 9
13 : Charsets -> . / 10
14 : Charsets -> . Charset Charsets / 10
LIDENT => shift 11
NUMBER => shift 13
ANY => shift 26
EMPT => shift 25
LPAREN => shift 28
RPAREN => reduce 13
Ident => goto 27
Number => goto 24
Charset => goto 57
Charsets => goto 61
-----
State 43:
0 : Ident -> . LIDENT / 9
1 : Number -> . NUMBER / 9
4 : Charset -> . Ident / 9
5 : Charset -> . Number / 9
6 : Charset -> . LPAREN RANGE NumPairs RPAREN / 9
7 : Charset -> . EMPT / 9
8 : Charset -> . LPAREN OR Charsets RPAREN / 9
9 : Charset -> . LPAREN AND Charsets RPAREN / 9
10 : Charset -> . LPAREN MINUS Charset Charsets RPAREN / 9
10 : Charset -> LPAREN MINUS . Charset Charsets RPAREN / 6
11 : Charset -> . LPAREN TILDE Charsets RPAREN / 9
12 : Charset -> . ANY / 9
LIDENT => shift 11
NUMBER => shift 13
ANY => shift 26
EMPT => shift 25
LPAREN => shift 28
Ident => goto 27
Number => goto 24
Charset => goto 62
-----
State 44:
0 : Ident -> . LIDENT / 9
1 : Number -> . NUMBER / 9
4 : Charset -> . Ident / 9
5 : Charset -> . Number / 9
6 : Charset -> . LPAREN RANGE NumPairs RPAREN / 9
7 : Charset -> . EMPT / 9
8 : Charset -> . LPAREN OR Charsets RPAREN / 9
9 : Charset -> . LPAREN AND Charsets RPAREN / 9
9 : Charset -> LPAREN AND . Charsets RPAREN / 6
10 : Charset -> . LPAREN MINUS Charset Charsets RPAREN / 9
11 : Charset -> . LPAREN TILDE Charsets RPAREN / 9
12 : Charset -> . ANY / 9
13 : Charsets -> . / 10
14 : Charsets -> . Charset Charsets / 10
LIDENT => shift 11
NUMBER => shift 13
ANY => shift 26
EMPT => shift 25
LPAREN => shift 28
RPAREN => reduce 13
Ident => goto 27
Number => goto 24
Charset => goto 57
Charsets => goto 63
-----
State 45:
1 : Number -> . NUMBER / 11
29 : Regexp -> LPAREN REPEAT . Number Number Regexp RPAREN / 5
NUMBER => shift 13
Number => goto 64
-----
State 46:
1 : Number -> . NUMBER / 12
28 : Regexp -> LPAREN GEQ . Number Regexp RPAREN / 5
NUMBER => shift 13
Number => goto 65
-----
State 47:
1 : Number -> . NUMBER / 12
27 : Regexp -> LPAREN EQUAL . Number Regexp RPAREN / 5
NUMBER => shift 13
Number => goto 66
-----
State 48:
0 : Ident -> . LIDENT / 13
1 : Number -> . NUMBER / 13
15 : Regexp -> . Ident / 13
16 : Regexp -> . Number / 13
17 : Regexp -> . STRING / 13
18 : Regexp -> . ANY / 13
19 : Regexp -> . EPSILON / 13
20 : Regexp -> . EMPT / 13
21 : Regexp -> . LPAREN COLON Regexps RPAREN / 13
21 : Regexp -> LPAREN COLON . Regexps RPAREN / 5
22 : Regexp -> . LPAREN SEQ Regexps RPAREN / 13
23 : Regexp -> . LPAREN OR Regexps RPAREN / 13
24 : Regexp -> . LPAREN QUESTION Regexp RPAREN / 13
25 : Regexp -> . LPAREN STAR Regexp RPAREN / 13
26 : Regexp -> . LPAREN PLUS Regexp RPAREN / 13
27 : Regexp -> . LPAREN EQUAL Number Regexp RPAREN / 13
28 : Regexp -> . LPAREN GEQ Number Regexp RPAREN / 13
29 : Regexp -> . LPAREN REPEAT Number Number Regexp RPAREN / 13
30 : Regexp -> . EOS / 13
31 : Regexps -> . / 10