-
Notifications
You must be signed in to change notification settings - Fork 0
/
parsemain.cmyacc.sml
executable file
·2037 lines (1645 loc) · 68 KB
/
parsemain.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 ParseMainFun
(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 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 name_directive : string -> directive
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 =
IDENT of string
| NUMBER of int
| STRING of intlist
| ALPHABET
| AND
| ANY
| ARROW
| COLON
| EOS
| EMPT
| EPSILON
| EQUAL
| FUNCTION
| GEQ
| LPAREN
| MINUS
| 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
36 : Directive -> . NAME Ident / 1
37 : Directive -> . ALPHABET Number / 1
38 : Directive -> . REGEXP Ident EQUAL Regexp / 1
39 : Directive -> . SET Ident EQUAL Charset / 1
40 : Directive -> . FUNCTION Ident COLON Ident EQUAL Arms / 1
41 : Directives -> . / 0
42 : Directives -> . Directive Directives / 0
$ => reduce 41
ALPHABET => shift 4
FUNCTION => shift 3
NAME => shift 5
REGEXP => shift 6
SET => shift 2
Directive => goto 1
Directives => goto 7
-----
State 1:
36 : Directive -> . NAME Ident / 1
37 : Directive -> . ALPHABET Number / 1
38 : Directive -> . REGEXP Ident EQUAL Regexp / 1
39 : Directive -> . SET Ident EQUAL Charset / 1
40 : Directive -> . FUNCTION Ident COLON Ident EQUAL Arms / 1
41 : Directives -> . / 0
42 : Directives -> . Directive Directives / 0
42 : Directives -> Directive . Directives / 0
$ => reduce 41
ALPHABET => shift 4
FUNCTION => shift 3
NAME => shift 5
REGEXP => shift 6
SET => shift 2
Directive => goto 1
Directives => goto 8
-----
State 2:
0 : Ident -> . IDENT / 2
39 : Directive -> SET . Ident EQUAL Charset / 1
IDENT => shift 10
Ident => goto 9
-----
State 3:
0 : Ident -> . IDENT / 3
40 : Directive -> FUNCTION . Ident COLON Ident EQUAL Arms / 1
IDENT => shift 10
Ident => goto 11
-----
State 4:
1 : Number -> . NUMBER / 1
37 : Directive -> ALPHABET . Number / 1
NUMBER => shift 13
Number => goto 12
-----
State 5:
0 : Ident -> . IDENT / 1
36 : Directive -> NAME . Ident / 1
IDENT => shift 10
Ident => goto 14
-----
State 6:
0 : Ident -> . IDENT / 2
38 : Directive -> REGEXP . Ident EQUAL Regexp / 1
IDENT => shift 10
Ident => goto 15
-----
State 7:
start -> Directives . / 0
$ => accept
-----
State 8:
42 : Directives -> Directive Directives . / 0
$ => reduce 42
-----
State 9:
39 : Directive -> SET Ident . EQUAL Charset / 1
EQUAL => shift 16
-----
State 10:
0 : Ident -> IDENT . / 4
$ => reduce 0
IDENT => 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
NAME => reduce 0
REGEXP => reduce 0
RPAREN => reduce 0
SET => reduce 0
-----
State 11:
40 : Directive -> FUNCTION Ident . COLON Ident EQUAL Arms / 1
COLON => shift 17
-----
State 12:
37 : Directive -> ALPHABET Number . / 1
$ => reduce 37
ALPHABET => reduce 37
FUNCTION => reduce 37
NAME => reduce 37
REGEXP => reduce 37
SET => reduce 37
-----
State 13:
1 : Number -> NUMBER . / 5
$ => reduce 1
IDENT => 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
NAME => reduce 1
REGEXP => reduce 1
RPAREN => reduce 1
SET => reduce 1
-----
State 14:
36 : Directive -> NAME Ident . / 1
$ => reduce 36
ALPHABET => reduce 36
FUNCTION => reduce 36
NAME => reduce 36
REGEXP => reduce 36
SET => reduce 36
-----
State 15:
38 : Directive -> REGEXP Ident . EQUAL Regexp / 1
EQUAL => shift 18
-----
State 16:
0 : Ident -> . IDENT / 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
39 : Directive -> SET Ident EQUAL . Charset / 1
IDENT => shift 10
NUMBER => shift 13
ANY => shift 22
EMPT => shift 21
LPAREN => shift 24
Ident => goto 23
Number => goto 20
Charset => goto 19
-----
State 17:
0 : Ident -> . IDENT / 2
40 : Directive -> FUNCTION Ident COLON . Ident EQUAL Arms / 1
IDENT => shift 10
Ident => goto 25
-----
State 18:
0 : Ident -> . IDENT / 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
38 : Directive -> REGEXP Ident EQUAL . Regexp / 1
IDENT => shift 10
NUMBER => shift 13
STRING => shift 30
ANY => shift 29
EOS => shift 28
EMPT => shift 33
EPSILON => shift 34
LPAREN => shift 32
Ident => goto 31
Number => goto 27
Regexp => goto 26
-----
State 19:
39 : Directive -> SET Ident EQUAL Charset . / 1
$ => reduce 39
ALPHABET => reduce 39
FUNCTION => reduce 39
NAME => reduce 39
REGEXP => reduce 39
SET => reduce 39
-----
State 20:
5 : Charset -> Number . / 6
$ => reduce 5
IDENT => reduce 5
NUMBER => reduce 5
ALPHABET => reduce 5
ANY => reduce 5
EMPT => reduce 5
FUNCTION => reduce 5
LPAREN => reduce 5
NAME => reduce 5
REGEXP => reduce 5
RPAREN => reduce 5
SET => reduce 5
-----
State 21:
7 : Charset -> EMPT . / 6
$ => reduce 7
IDENT => reduce 7
NUMBER => reduce 7
ALPHABET => reduce 7
ANY => reduce 7
EMPT => reduce 7
FUNCTION => reduce 7
LPAREN => reduce 7
NAME => reduce 7
REGEXP => reduce 7
RPAREN => reduce 7
SET => reduce 7
-----
State 22:
12 : Charset -> ANY . / 6
$ => reduce 12
IDENT => reduce 12
NUMBER => reduce 12
ALPHABET => reduce 12
ANY => reduce 12
EMPT => reduce 12
FUNCTION => reduce 12
LPAREN => reduce 12
NAME => reduce 12
REGEXP => reduce 12
RPAREN => reduce 12
SET => reduce 12
-----
State 23:
4 : Charset -> Ident . / 6
$ => reduce 4
IDENT => reduce 4
NUMBER => reduce 4
ALPHABET => reduce 4
ANY => reduce 4
EMPT => reduce 4
FUNCTION => reduce 4
LPAREN => reduce 4
NAME => reduce 4
REGEXP => reduce 4
RPAREN => reduce 4
SET => reduce 4
-----
State 24:
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 39
MINUS => shift 38
OR => shift 37
RANGE => shift 36
TILDE => shift 35
-----
State 25:
40 : Directive -> FUNCTION Ident COLON Ident . EQUAL Arms / 1
EQUAL => shift 40
-----
State 26:
38 : Directive -> REGEXP Ident EQUAL Regexp . / 1
$ => reduce 38
ALPHABET => reduce 38
FUNCTION => reduce 38
NAME => reduce 38
REGEXP => reduce 38
SET => reduce 38
-----
State 27:
16 : Regexp -> Number . / 5
$ => reduce 16
IDENT => 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
NAME => reduce 16
REGEXP => reduce 16
RPAREN => reduce 16
SET => reduce 16
-----
State 28:
30 : Regexp -> EOS . / 5
$ => reduce 30
IDENT => 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
NAME => reduce 30
REGEXP => reduce 30
RPAREN => reduce 30
SET => reduce 30
-----
State 29:
18 : Regexp -> ANY . / 5
$ => reduce 18
IDENT => 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
NAME => reduce 18
REGEXP => reduce 18
RPAREN => reduce 18
SET => reduce 18
-----
State 30:
17 : Regexp -> STRING . / 5
$ => reduce 17
IDENT => 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
NAME => reduce 17
REGEXP => reduce 17
RPAREN => reduce 17
SET => reduce 17
-----
State 31:
15 : Regexp -> Ident . / 5
$ => reduce 15
IDENT => 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
NAME => reduce 15
REGEXP => reduce 15
RPAREN => reduce 15
SET => reduce 15
-----
State 32:
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 44
EQUAL => shift 43
GEQ => shift 42
OR => shift 46
PLUS => shift 45
QUESTION => shift 47
REPEAT => shift 41
SEQ => shift 48
STAR => shift 49
-----
State 33:
20 : Regexp -> EMPT . / 5
$ => reduce 20
IDENT => 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
NAME => reduce 20
REGEXP => reduce 20
RPAREN => reduce 20
SET => reduce 20
-----
State 34:
19 : Regexp -> EPSILON . / 5
$ => reduce 19
IDENT => 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
NAME => reduce 19
REGEXP => reduce 19
RPAREN => reduce 19
SET => reduce 19
-----
State 35:
0 : Ident -> . IDENT / 7
1 : Number -> . NUMBER / 7
4 : Charset -> . Ident / 7
5 : Charset -> . Number / 7
6 : Charset -> . LPAREN RANGE NumPairs RPAREN / 7
7 : Charset -> . EMPT / 7
8 : Charset -> . LPAREN OR Charsets RPAREN / 7
9 : Charset -> . LPAREN AND Charsets RPAREN / 7
10 : Charset -> . LPAREN MINUS Charset Charsets RPAREN / 7
11 : Charset -> . LPAREN TILDE Charsets RPAREN / 7
11 : Charset -> LPAREN TILDE . Charsets RPAREN / 6
12 : Charset -> . ANY / 7
13 : Charsets -> . / 8
14 : Charsets -> . Charset Charsets / 8
IDENT => shift 10
NUMBER => shift 13
ANY => shift 22
EMPT => shift 21
LPAREN => shift 24
RPAREN => reduce 13
Ident => goto 23
Number => goto 20
Charset => goto 50
Charsets => goto 51
-----
State 36:
1 : Number -> . NUMBER / 9
2 : NumPairs -> . / 8
3 : NumPairs -> . Number Number NumPairs / 8
6 : Charset -> LPAREN RANGE . NumPairs RPAREN / 6
NUMBER => shift 13
RPAREN => reduce 2
Number => goto 53
NumPairs => goto 52
-----
State 37:
0 : Ident -> . IDENT / 7
1 : Number -> . NUMBER / 7
4 : Charset -> . Ident / 7
5 : Charset -> . Number / 7
6 : Charset -> . LPAREN RANGE NumPairs RPAREN / 7
7 : Charset -> . EMPT / 7
8 : Charset -> . LPAREN OR Charsets RPAREN / 7
8 : Charset -> LPAREN OR . Charsets RPAREN / 6
9 : Charset -> . LPAREN AND Charsets RPAREN / 7
10 : Charset -> . LPAREN MINUS Charset Charsets RPAREN / 7
11 : Charset -> . LPAREN TILDE Charsets RPAREN / 7
12 : Charset -> . ANY / 7
13 : Charsets -> . / 8
14 : Charsets -> . Charset Charsets / 8
IDENT => shift 10
NUMBER => shift 13
ANY => shift 22
EMPT => shift 21
LPAREN => shift 24
RPAREN => reduce 13
Ident => goto 23
Number => goto 20
Charset => goto 50
Charsets => goto 54
-----
State 38:
0 : Ident -> . IDENT / 7
1 : Number -> . NUMBER / 7
4 : Charset -> . Ident / 7
5 : Charset -> . Number / 7
6 : Charset -> . LPAREN RANGE NumPairs RPAREN / 7
7 : Charset -> . EMPT / 7
8 : Charset -> . LPAREN OR Charsets RPAREN / 7
9 : Charset -> . LPAREN AND Charsets RPAREN / 7
10 : Charset -> . LPAREN MINUS Charset Charsets RPAREN / 7
10 : Charset -> LPAREN MINUS . Charset Charsets RPAREN / 6
11 : Charset -> . LPAREN TILDE Charsets RPAREN / 7
12 : Charset -> . ANY / 7
IDENT => shift 10
NUMBER => shift 13
ANY => shift 22
EMPT => shift 21
LPAREN => shift 24
Ident => goto 23
Number => goto 20
Charset => goto 55
-----
State 39:
0 : Ident -> . IDENT / 7
1 : Number -> . NUMBER / 7
4 : Charset -> . Ident / 7
5 : Charset -> . Number / 7
6 : Charset -> . LPAREN RANGE NumPairs RPAREN / 7
7 : Charset -> . EMPT / 7
8 : Charset -> . LPAREN OR Charsets RPAREN / 7
9 : Charset -> . LPAREN AND Charsets RPAREN / 7
9 : Charset -> LPAREN AND . Charsets RPAREN / 6
10 : Charset -> . LPAREN MINUS Charset Charsets RPAREN / 7
11 : Charset -> . LPAREN TILDE Charsets RPAREN / 7
12 : Charset -> . ANY / 7
13 : Charsets -> . / 8
14 : Charsets -> . Charset Charsets / 8
IDENT => shift 10
NUMBER => shift 13
ANY => shift 22
EMPT => shift 21
LPAREN => shift 24
RPAREN => reduce 13
Ident => goto 23
Number => goto 20
Charset => goto 50
Charsets => goto 56
-----
State 40:
0 : Ident -> . IDENT / 10
1 : Number -> . NUMBER / 10
15 : Regexp -> . Ident / 10
16 : Regexp -> . Number / 10
17 : Regexp -> . STRING / 10
18 : Regexp -> . ANY / 10
19 : Regexp -> . EPSILON / 10
20 : Regexp -> . EMPT / 10
21 : Regexp -> . LPAREN COLON Regexps RPAREN / 10
22 : Regexp -> . LPAREN SEQ Regexps RPAREN / 10
23 : Regexp -> . LPAREN OR Regexps RPAREN / 10
24 : Regexp -> . LPAREN QUESTION Regexp RPAREN / 10
25 : Regexp -> . LPAREN STAR Regexp RPAREN / 10
26 : Regexp -> . LPAREN PLUS Regexp RPAREN / 10
27 : Regexp -> . LPAREN EQUAL Number Regexp RPAREN / 10
28 : Regexp -> . LPAREN GEQ Number Regexp RPAREN / 10
29 : Regexp -> . LPAREN REPEAT Number Number Regexp RPAREN / 10
30 : Regexp -> . EOS / 10
33 : Arm -> . Regexp ARROW Ident / 11
34 : Arms -> . Arm / 1
35 : Arms -> . Arm Arms / 1
40 : Directive -> FUNCTION Ident COLON Ident EQUAL . Arms / 1
IDENT => shift 10
NUMBER => shift 13
STRING => shift 30
ANY => shift 29
EOS => shift 28
EMPT => shift 33
EPSILON => shift 34
LPAREN => shift 32
Ident => goto 31
Number => goto 27
Regexp => goto 59
Arm => goto 58
Arms => goto 57
-----
State 41:
1 : Number -> . NUMBER / 9
29 : Regexp -> LPAREN REPEAT . Number Number Regexp RPAREN / 5
NUMBER => shift 13
Number => goto 60
-----
State 42:
1 : Number -> . NUMBER / 12
28 : Regexp -> LPAREN GEQ . Number Regexp RPAREN / 5
NUMBER => shift 13
Number => goto 61
-----
State 43:
1 : Number -> . NUMBER / 12
27 : Regexp -> LPAREN EQUAL . Number Regexp RPAREN / 5
NUMBER => shift 13
Number => goto 62
-----
State 44:
0 : Ident -> . IDENT / 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 -> . / 8
32 : Regexps -> . Regexp Regexps / 8
IDENT => shift 10
NUMBER => shift 13
STRING => shift 30
ANY => shift 29
EOS => shift 28
EMPT => shift 33
EPSILON => shift 34
LPAREN => shift 32
RPAREN => reduce 31
Ident => goto 31
Number => goto 27
Regexp => goto 63
Regexps => goto 64
-----
State 45:
0 : Ident -> . IDENT / 8
1 : Number -> . NUMBER / 8
15 : Regexp -> . Ident / 8
16 : Regexp -> . Number / 8
17 : Regexp -> . STRING / 8
18 : Regexp -> . ANY / 8
19 : Regexp -> . EPSILON / 8
20 : Regexp -> . EMPT / 8
21 : Regexp -> . LPAREN COLON Regexps RPAREN / 8
22 : Regexp -> . LPAREN SEQ Regexps RPAREN / 8
23 : Regexp -> . LPAREN OR Regexps RPAREN / 8
24 : Regexp -> . LPAREN QUESTION Regexp RPAREN / 8
25 : Regexp -> . LPAREN STAR Regexp RPAREN / 8
26 : Regexp -> . LPAREN PLUS Regexp RPAREN / 8
26 : Regexp -> LPAREN PLUS . Regexp RPAREN / 5
27 : Regexp -> . LPAREN EQUAL Number Regexp RPAREN / 8
28 : Regexp -> . LPAREN GEQ Number Regexp RPAREN / 8
29 : Regexp -> . LPAREN REPEAT Number Number Regexp RPAREN / 8
30 : Regexp -> . EOS / 8
IDENT => shift 10
NUMBER => shift 13
STRING => shift 30
ANY => shift 29
EOS => shift 28
EMPT => shift 33
EPSILON => shift 34
LPAREN => shift 32
Ident => goto 31
Number => goto 27
Regexp => goto 65
-----
State 46:
0 : Ident -> . IDENT / 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
22 : Regexp -> . LPAREN SEQ Regexps RPAREN / 13
23 : Regexp -> . LPAREN OR Regexps RPAREN / 13
23 : Regexp -> LPAREN OR . Regexps RPAREN / 5
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 -> . / 8
32 : Regexps -> . Regexp Regexps / 8
IDENT => shift 10
NUMBER => shift 13
STRING => shift 30
ANY => shift 29
EOS => shift 28
EMPT => shift 33