-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathFormula.cs
3025 lines (2619 loc) · 92.3 KB
/
Formula.cs
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
using System;
using System.Text.RegularExpressions;
using System.Collections.Generic;
using System.Linq;
using Sheet;
namespace Jison
{
public class Formula
{
public ParserSymbols Symbols;
public Dictionary<int, ParserSymbol> Terminals;
public Dictionary<int, ParserProduction> Productions;
public Dictionary<int, ParserState> Table;
public Dictionary<int, ParserAction> DefaultActions;
public string Version = "0.4.2";
public bool Debug = false;
public const int None = 0;
public const int Shift = 1;
public const int Reduce = 2;
public const int Accept = 3;
public void Trace()
{
}
public Formula()
{
//Setup Parser
var symbol0 = new ParserSymbol("accept", 0);
var symbol1 = new ParserSymbol("end", 1);
var symbol2 = new ParserSymbol("error", 2);
var symbol3 = new ParserSymbol("expressions", 3);
var symbol4 = new ParserSymbol("expression", 4);
var symbol5 = new ParserSymbol("EOF", 5);
var symbol6 = new ParserSymbol("variableSequence", 6);
var symbol7 = new ParserSymbol("TIME_AMPM", 7);
var symbol8 = new ParserSymbol("TIME_24", 8);
var symbol9 = new ParserSymbol("number", 9);
var symbol10 = new ParserSymbol("STRING", 10);
var symbol11 = new ParserSymbol("&", 11);
var symbol12 = new ParserSymbol("=", 12);
var symbol13 = new ParserSymbol("+", 13);
var symbol14 = new ParserSymbol("(", 14);
var symbol15 = new ParserSymbol(")", 15);
var symbol16 = new ParserSymbol("<", 16);
var symbol17 = new ParserSymbol(">", 17);
var symbol18 = new ParserSymbol("NOT", 18);
var symbol19 = new ParserSymbol("-", 19);
var symbol20 = new ParserSymbol("*", 20);
var symbol21 = new ParserSymbol("/", 21);
var symbol22 = new ParserSymbol("^", 22);
var symbol23 = new ParserSymbol("E", 23);
var symbol24 = new ParserSymbol("FUNCTION", 24);
var symbol25 = new ParserSymbol("expseq", 25);
var symbol26 = new ParserSymbol("cell", 26);
var symbol27 = new ParserSymbol("FIXEDCELL", 27);
var symbol28 = new ParserSymbol(":", 28);
var symbol29 = new ParserSymbol("CELL", 29);
var symbol30 = new ParserSymbol("SHEET", 30);
var symbol31 = new ParserSymbol("!", 31);
var symbol32 = new ParserSymbol(";", 32);
var symbol33 = new ParserSymbol(",", 33);
var symbol34 = new ParserSymbol("VARIABLE", 34);
var symbol35 = new ParserSymbol("DECIMAL", 35);
var symbol36 = new ParserSymbol("NUMBER", 36);
var symbol37 = new ParserSymbol("%", 37);
var symbol38 = new ParserSymbol("#", 38);
Symbols = new ParserSymbols();
Symbols.Add(symbol0);
Symbols.Add(symbol1);
Symbols.Add(symbol2);
Symbols.Add(symbol3);
Symbols.Add(symbol4);
Symbols.Add(symbol5);
Symbols.Add(symbol6);
Symbols.Add(symbol7);
Symbols.Add(symbol8);
Symbols.Add(symbol9);
Symbols.Add(symbol10);
Symbols.Add(symbol11);
Symbols.Add(symbol12);
Symbols.Add(symbol13);
Symbols.Add(symbol14);
Symbols.Add(symbol15);
Symbols.Add(symbol16);
Symbols.Add(symbol17);
Symbols.Add(symbol18);
Symbols.Add(symbol19);
Symbols.Add(symbol20);
Symbols.Add(symbol21);
Symbols.Add(symbol22);
Symbols.Add(symbol23);
Symbols.Add(symbol24);
Symbols.Add(symbol25);
Symbols.Add(symbol26);
Symbols.Add(symbol27);
Symbols.Add(symbol28);
Symbols.Add(symbol29);
Symbols.Add(symbol30);
Symbols.Add(symbol31);
Symbols.Add(symbol32);
Symbols.Add(symbol33);
Symbols.Add(symbol34);
Symbols.Add(symbol35);
Symbols.Add(symbol36);
Symbols.Add(symbol37);
Symbols.Add(symbol38);
Terminals = new Dictionary<int, ParserSymbol>
{
{5, symbol5},
{7, symbol7},
{8, symbol8},
{10, symbol10},
{11, symbol11},
{12, symbol12},
{13, symbol13},
{14, symbol14},
{15, symbol15},
{16, symbol16},
{17, symbol17},
{18, symbol18},
{19, symbol19},
{20, symbol20},
{21, symbol21},
{22, symbol22},
{23, symbol23},
{24, symbol24},
{27, symbol27},
{28, symbol28},
{29, symbol29},
{30, symbol30},
{31, symbol31},
{32, symbol32},
{33, symbol33},
{34, symbol34},
{35, symbol35},
{36, symbol36},
{37, symbol37},
{38, symbol38}
};
var table0 = new ParserState(0);
var table1 = new ParserState(1);
var table2 = new ParserState(2);
var table3 = new ParserState(3);
var table4 = new ParserState(4);
var table5 = new ParserState(5);
var table6 = new ParserState(6);
var table7 = new ParserState(7);
var table8 = new ParserState(8);
var table9 = new ParserState(9);
var table10 = new ParserState(10);
var table11 = new ParserState(11);
var table12 = new ParserState(12);
var table13 = new ParserState(13);
var table14 = new ParserState(14);
var table15 = new ParserState(15);
var table16 = new ParserState(16);
var table17 = new ParserState(17);
var table18 = new ParserState(18);
var table19 = new ParserState(19);
var table20 = new ParserState(20);
var table21 = new ParserState(21);
var table22 = new ParserState(22);
var table23 = new ParserState(23);
var table24 = new ParserState(24);
var table25 = new ParserState(25);
var table26 = new ParserState(26);
var table27 = new ParserState(27);
var table28 = new ParserState(28);
var table29 = new ParserState(29);
var table30 = new ParserState(30);
var table31 = new ParserState(31);
var table32 = new ParserState(32);
var table33 = new ParserState(33);
var table34 = new ParserState(34);
var table35 = new ParserState(35);
var table36 = new ParserState(36);
var table37 = new ParserState(37);
var table38 = new ParserState(38);
var table39 = new ParserState(39);
var table40 = new ParserState(40);
var table41 = new ParserState(41);
var table42 = new ParserState(42);
var table43 = new ParserState(43);
var table44 = new ParserState(44);
var table45 = new ParserState(45);
var table46 = new ParserState(46);
var table47 = new ParserState(47);
var table48 = new ParserState(48);
var table49 = new ParserState(49);
var table50 = new ParserState(50);
var table51 = new ParserState(51);
var table52 = new ParserState(52);
var table53 = new ParserState(53);
var table54 = new ParserState(54);
var table55 = new ParserState(55);
var table56 = new ParserState(56);
var table57 = new ParserState(57);
var table58 = new ParserState(58);
var table59 = new ParserState(59);
var table60 = new ParserState(60);
var table61 = new ParserState(61);
var table62 = new ParserState(62);
var table63 = new ParserState(63);
var table64 = new ParserState(64);
var table65 = new ParserState(65);
var table66 = new ParserState(66);
var table67 = new ParserState(67);
var table68 = new ParserState(68);
var table69 = new ParserState(69);
var table70 = new ParserState(70);
var table71 = new ParserState(71);
var table72 = new ParserState(72);
var table73 = new ParserState(73);
var table74 = new ParserState(74);
var table75 = new ParserState(75);
var table76 = new ParserState(76);
var table77 = new ParserState(77);
var table78 = new ParserState(78);
var table79 = new ParserState(79);
var table80 = new ParserState(80);
var tableDefinition0 = new Dictionary<int, ParserAction>
{
{2, new ParserAction(None, ref table14)},
{3, new ParserAction(None, ref table1)},
{4, new ParserAction(None, ref table2)},
{6, new ParserAction(None, ref table3)},
{7, new ParserAction(Shift, ref table4)},
{8, new ParserAction(Shift, ref table5)},
{9, new ParserAction(None, ref table6)},
{10, new ParserAction(Shift, ref table7)},
{13, new ParserAction(Shift, ref table10)},
{14, new ParserAction(Shift, ref table8)},
{19, new ParserAction(Shift, ref table9)},
{23, new ParserAction(Shift, ref table11)},
{24, new ParserAction(Shift, ref table12)},
{26, new ParserAction(None, ref table13)},
{27, new ParserAction(Shift, ref table17)},
{29, new ParserAction(Shift, ref table18)},
{30, new ParserAction(Shift, ref table19)},
{34, new ParserAction(Shift, ref table15)},
{36, new ParserAction(Shift, ref table16)},
{38, new ParserAction(Shift, ref table20)}
};
var tableDefinition1 = new Dictionary<int, ParserAction>
{
{1, new ParserAction(Accept)}
};
var tableDefinition2 = new Dictionary<int, ParserAction>
{
{5, new ParserAction(Shift, ref table21)},
{11, new ParserAction(Shift, ref table22)},
{12, new ParserAction(Shift, ref table23)},
{13, new ParserAction(Shift, ref table24)},
{16, new ParserAction(Shift, ref table25)},
{17, new ParserAction(Shift, ref table26)},
{18, new ParserAction(Shift, ref table27)},
{19, new ParserAction(Shift, ref table28)},
{20, new ParserAction(Shift, ref table29)},
{21, new ParserAction(Shift, ref table30)},
{22, new ParserAction(Shift, ref table31)}
};
var tableDefinition3 = new Dictionary<int, ParserAction>
{
{5, new ParserAction(Reduce, ref table2)},
{11, new ParserAction(Reduce, ref table2)},
{12, new ParserAction(Reduce, ref table2)},
{13, new ParserAction(Reduce, ref table2)},
{15, new ParserAction(Reduce, ref table2)},
{16, new ParserAction(Reduce, ref table2)},
{17, new ParserAction(Reduce, ref table2)},
{18, new ParserAction(Reduce, ref table2)},
{19, new ParserAction(Reduce, ref table2)},
{20, new ParserAction(Reduce, ref table2)},
{21, new ParserAction(Reduce, ref table2)},
{22, new ParserAction(Reduce, ref table2)},
{32, new ParserAction(Reduce, ref table2)},
{33, new ParserAction(Reduce, ref table2)},
{35, new ParserAction(Shift, ref table32)}
};
var tableDefinition4 = new Dictionary<int, ParserAction>
{
{5, new ParserAction(Reduce, ref table3)},
{11, new ParserAction(Reduce, ref table3)},
{12, new ParserAction(Reduce, ref table3)},
{13, new ParserAction(Reduce, ref table3)},
{15, new ParserAction(Reduce, ref table3)},
{16, new ParserAction(Reduce, ref table3)},
{17, new ParserAction(Reduce, ref table3)},
{18, new ParserAction(Reduce, ref table3)},
{19, new ParserAction(Reduce, ref table3)},
{20, new ParserAction(Reduce, ref table3)},
{21, new ParserAction(Reduce, ref table3)},
{22, new ParserAction(Reduce, ref table3)},
{32, new ParserAction(Reduce, ref table3)},
{33, new ParserAction(Reduce, ref table3)}
};
var tableDefinition5 = new Dictionary<int, ParserAction>
{
{5, new ParserAction(Reduce, ref table4)},
{11, new ParserAction(Reduce, ref table4)},
{12, new ParserAction(Reduce, ref table4)},
{13, new ParserAction(Reduce, ref table4)},
{15, new ParserAction(Reduce, ref table4)},
{16, new ParserAction(Reduce, ref table4)},
{17, new ParserAction(Reduce, ref table4)},
{18, new ParserAction(Reduce, ref table4)},
{19, new ParserAction(Reduce, ref table4)},
{20, new ParserAction(Reduce, ref table4)},
{21, new ParserAction(Reduce, ref table4)},
{22, new ParserAction(Reduce, ref table4)},
{32, new ParserAction(Reduce, ref table4)},
{33, new ParserAction(Reduce, ref table4)}
};
var tableDefinition6 = new Dictionary<int, ParserAction>
{
{5, new ParserAction(Reduce, ref table5)},
{11, new ParserAction(Reduce, ref table5)},
{12, new ParserAction(Reduce, ref table5)},
{13, new ParserAction(Reduce, ref table5)},
{15, new ParserAction(Reduce, ref table5)},
{16, new ParserAction(Reduce, ref table5)},
{17, new ParserAction(Reduce, ref table5)},
{18, new ParserAction(Reduce, ref table5)},
{19, new ParserAction(Reduce, ref table5)},
{20, new ParserAction(Reduce, ref table5)},
{21, new ParserAction(Reduce, ref table5)},
{22, new ParserAction(Reduce, ref table5)},
{32, new ParserAction(Reduce, ref table5)},
{33, new ParserAction(Reduce, ref table5)},
{37, new ParserAction(Shift, ref table33)}
};
var tableDefinition7 = new Dictionary<int, ParserAction>
{
{5, new ParserAction(Reduce, ref table6)},
{11, new ParserAction(Reduce, ref table6)},
{12, new ParserAction(Reduce, ref table6)},
{13, new ParserAction(Reduce, ref table6)},
{15, new ParserAction(Reduce, ref table6)},
{16, new ParserAction(Reduce, ref table6)},
{17, new ParserAction(Reduce, ref table6)},
{18, new ParserAction(Reduce, ref table6)},
{19, new ParserAction(Reduce, ref table6)},
{20, new ParserAction(Reduce, ref table6)},
{21, new ParserAction(Reduce, ref table6)},
{22, new ParserAction(Reduce, ref table6)},
{32, new ParserAction(Reduce, ref table6)},
{33, new ParserAction(Reduce, ref table6)}
};
var tableDefinition8 = new Dictionary<int, ParserAction>
{
{2, new ParserAction(None, ref table14)},
{4, new ParserAction(None, ref table34)},
{6, new ParserAction(None, ref table3)},
{7, new ParserAction(Shift, ref table4)},
{8, new ParserAction(Shift, ref table5)},
{9, new ParserAction(None, ref table6)},
{10, new ParserAction(Shift, ref table7)},
{13, new ParserAction(Shift, ref table10)},
{14, new ParserAction(Shift, ref table8)},
{19, new ParserAction(Shift, ref table9)},
{23, new ParserAction(Shift, ref table11)},
{24, new ParserAction(Shift, ref table12)},
{26, new ParserAction(None, ref table13)},
{27, new ParserAction(Shift, ref table17)},
{29, new ParserAction(Shift, ref table18)},
{30, new ParserAction(Shift, ref table19)},
{34, new ParserAction(Shift, ref table15)},
{36, new ParserAction(Shift, ref table16)},
{38, new ParserAction(Shift, ref table20)}
};
var tableDefinition9 = new Dictionary<int, ParserAction>
{
{2, new ParserAction(None, ref table14)},
{4, new ParserAction(None, ref table35)},
{6, new ParserAction(None, ref table3)},
{7, new ParserAction(Shift, ref table4)},
{8, new ParserAction(Shift, ref table5)},
{9, new ParserAction(None, ref table6)},
{10, new ParserAction(Shift, ref table7)},
{13, new ParserAction(Shift, ref table10)},
{14, new ParserAction(Shift, ref table8)},
{19, new ParserAction(Shift, ref table9)},
{23, new ParserAction(Shift, ref table11)},
{24, new ParserAction(Shift, ref table12)},
{26, new ParserAction(None, ref table13)},
{27, new ParserAction(Shift, ref table17)},
{29, new ParserAction(Shift, ref table18)},
{30, new ParserAction(Shift, ref table19)},
{34, new ParserAction(Shift, ref table15)},
{36, new ParserAction(Shift, ref table16)},
{38, new ParserAction(Shift, ref table20)}
};
var tableDefinition10 = new Dictionary<int, ParserAction>
{
{2, new ParserAction(None, ref table14)},
{4, new ParserAction(None, ref table36)},
{6, new ParserAction(None, ref table3)},
{7, new ParserAction(Shift, ref table4)},
{8, new ParserAction(Shift, ref table5)},
{9, new ParserAction(None, ref table6)},
{10, new ParserAction(Shift, ref table7)},
{13, new ParserAction(Shift, ref table10)},
{14, new ParserAction(Shift, ref table8)},
{19, new ParserAction(Shift, ref table9)},
{23, new ParserAction(Shift, ref table11)},
{24, new ParserAction(Shift, ref table12)},
{26, new ParserAction(None, ref table13)},
{27, new ParserAction(Shift, ref table17)},
{29, new ParserAction(Shift, ref table18)},
{30, new ParserAction(Shift, ref table19)},
{34, new ParserAction(Shift, ref table15)},
{36, new ParserAction(Shift, ref table16)},
{38, new ParserAction(Shift, ref table20)}
};
var tableDefinition11 = new Dictionary<int, ParserAction>
{
{5, new ParserAction(Reduce, ref table23)},
{11, new ParserAction(Reduce, ref table23)},
{12, new ParserAction(Reduce, ref table23)},
{13, new ParserAction(Reduce, ref table23)},
{15, new ParserAction(Reduce, ref table23)},
{16, new ParserAction(Reduce, ref table23)},
{17, new ParserAction(Reduce, ref table23)},
{18, new ParserAction(Reduce, ref table23)},
{19, new ParserAction(Reduce, ref table23)},
{20, new ParserAction(Reduce, ref table23)},
{21, new ParserAction(Reduce, ref table23)},
{22, new ParserAction(Reduce, ref table23)},
{32, new ParserAction(Reduce, ref table23)},
{33, new ParserAction(Reduce, ref table23)}
};
var tableDefinition12 = new Dictionary<int, ParserAction>
{
{14, new ParserAction(Shift, ref table37)}
};
var tableDefinition13 = new Dictionary<int, ParserAction>
{
{5, new ParserAction(Reduce, ref table26)},
{11, new ParserAction(Reduce, ref table26)},
{12, new ParserAction(Reduce, ref table26)},
{13, new ParserAction(Reduce, ref table26)},
{15, new ParserAction(Reduce, ref table26)},
{16, new ParserAction(Reduce, ref table26)},
{17, new ParserAction(Reduce, ref table26)},
{18, new ParserAction(Reduce, ref table26)},
{19, new ParserAction(Reduce, ref table26)},
{20, new ParserAction(Reduce, ref table26)},
{21, new ParserAction(Reduce, ref table26)},
{22, new ParserAction(Reduce, ref table26)},
{32, new ParserAction(Reduce, ref table26)},
{33, new ParserAction(Reduce, ref table26)}
};
var tableDefinition14 = new Dictionary<int, ParserAction>
{
{2, new ParserAction(None, ref table38)},
{5, new ParserAction(Reduce, ref table27)},
{11, new ParserAction(Reduce, ref table27)},
{12, new ParserAction(Reduce, ref table27)},
{13, new ParserAction(Reduce, ref table27)},
{15, new ParserAction(Reduce, ref table27)},
{16, new ParserAction(Reduce, ref table27)},
{17, new ParserAction(Reduce, ref table27)},
{18, new ParserAction(Reduce, ref table27)},
{19, new ParserAction(Reduce, ref table27)},
{20, new ParserAction(Reduce, ref table27)},
{21, new ParserAction(Reduce, ref table27)},
{22, new ParserAction(Reduce, ref table27)},
{32, new ParserAction(Reduce, ref table27)},
{33, new ParserAction(Reduce, ref table27)},
{34, new ParserAction(Shift, ref table39)},
{38, new ParserAction(Shift, ref table20)}
};
var tableDefinition15 = new Dictionary<int, ParserAction>
{
{5, new ParserAction(Reduce, ref table38)},
{11, new ParserAction(Reduce, ref table38)},
{12, new ParserAction(Reduce, ref table38)},
{13, new ParserAction(Reduce, ref table38)},
{15, new ParserAction(Reduce, ref table38)},
{16, new ParserAction(Reduce, ref table38)},
{17, new ParserAction(Reduce, ref table38)},
{18, new ParserAction(Reduce, ref table38)},
{19, new ParserAction(Reduce, ref table38)},
{20, new ParserAction(Reduce, ref table38)},
{21, new ParserAction(Reduce, ref table38)},
{22, new ParserAction(Reduce, ref table38)},
{32, new ParserAction(Reduce, ref table38)},
{33, new ParserAction(Reduce, ref table38)},
{35, new ParserAction(Reduce, ref table38)},
{38, new ParserAction(Shift, ref table40)}
};
var tableDefinition16 = new Dictionary<int, ParserAction>
{
{5, new ParserAction(Reduce, ref table40)},
{11, new ParserAction(Reduce, ref table40)},
{12, new ParserAction(Reduce, ref table40)},
{13, new ParserAction(Reduce, ref table40)},
{15, new ParserAction(Reduce, ref table40)},
{16, new ParserAction(Reduce, ref table40)},
{17, new ParserAction(Reduce, ref table40)},
{18, new ParserAction(Reduce, ref table40)},
{19, new ParserAction(Reduce, ref table40)},
{20, new ParserAction(Reduce, ref table40)},
{21, new ParserAction(Reduce, ref table40)},
{22, new ParserAction(Reduce, ref table40)},
{32, new ParserAction(Reduce, ref table40)},
{33, new ParserAction(Reduce, ref table40)},
{35, new ParserAction(Shift, ref table41)},
{37, new ParserAction(Reduce, ref table40)}
};
var tableDefinition17 = new Dictionary<int, ParserAction>
{
{5, new ParserAction(Reduce, ref table29)},
{11, new ParserAction(Reduce, ref table29)},
{12, new ParserAction(Reduce, ref table29)},
{13, new ParserAction(Reduce, ref table29)},
{15, new ParserAction(Reduce, ref table29)},
{16, new ParserAction(Reduce, ref table29)},
{17, new ParserAction(Reduce, ref table29)},
{18, new ParserAction(Reduce, ref table29)},
{19, new ParserAction(Reduce, ref table29)},
{20, new ParserAction(Reduce, ref table29)},
{21, new ParserAction(Reduce, ref table29)},
{22, new ParserAction(Reduce, ref table29)},
{28, new ParserAction(Shift, ref table42)},
{32, new ParserAction(Reduce, ref table29)},
{33, new ParserAction(Reduce, ref table29)}
};
var tableDefinition18 = new Dictionary<int, ParserAction>
{
{5, new ParserAction(Reduce, ref table31)},
{11, new ParserAction(Reduce, ref table31)},
{12, new ParserAction(Reduce, ref table31)},
{13, new ParserAction(Reduce, ref table31)},
{15, new ParserAction(Reduce, ref table31)},
{16, new ParserAction(Reduce, ref table31)},
{17, new ParserAction(Reduce, ref table31)},
{18, new ParserAction(Reduce, ref table31)},
{19, new ParserAction(Reduce, ref table31)},
{20, new ParserAction(Reduce, ref table31)},
{21, new ParserAction(Reduce, ref table31)},
{22, new ParserAction(Reduce, ref table31)},
{28, new ParserAction(Shift, ref table43)},
{32, new ParserAction(Reduce, ref table31)},
{33, new ParserAction(Reduce, ref table31)}
};
var tableDefinition19 = new Dictionary<int, ParserAction>
{
{31, new ParserAction(Shift, ref table44)}
};
var tableDefinition20 = new Dictionary<int, ParserAction>
{
{34, new ParserAction(Shift, ref table45)}
};
var tableDefinition21 = new Dictionary<int, ParserAction>
{
{1, new ParserAction(Reduce, ref table1)}
};
var tableDefinition22 = new Dictionary<int, ParserAction>
{
{2, new ParserAction(None, ref table14)},
{4, new ParserAction(None, ref table46)},
{6, new ParserAction(None, ref table3)},
{7, new ParserAction(Shift, ref table4)},
{8, new ParserAction(Shift, ref table5)},
{9, new ParserAction(None, ref table6)},
{10, new ParserAction(Shift, ref table7)},
{13, new ParserAction(Shift, ref table10)},
{14, new ParserAction(Shift, ref table8)},
{19, new ParserAction(Shift, ref table9)},
{23, new ParserAction(Shift, ref table11)},
{24, new ParserAction(Shift, ref table12)},
{26, new ParserAction(None, ref table13)},
{27, new ParserAction(Shift, ref table17)},
{29, new ParserAction(Shift, ref table18)},
{30, new ParserAction(Shift, ref table19)},
{34, new ParserAction(Shift, ref table15)},
{36, new ParserAction(Shift, ref table16)},
{38, new ParserAction(Shift, ref table20)}
};
var tableDefinition23 = new Dictionary<int, ParserAction>
{
{2, new ParserAction(None, ref table14)},
{4, new ParserAction(None, ref table47)},
{6, new ParserAction(None, ref table3)},
{7, new ParserAction(Shift, ref table4)},
{8, new ParserAction(Shift, ref table5)},
{9, new ParserAction(None, ref table6)},
{10, new ParserAction(Shift, ref table7)},
{13, new ParserAction(Shift, ref table10)},
{14, new ParserAction(Shift, ref table8)},
{19, new ParserAction(Shift, ref table9)},
{23, new ParserAction(Shift, ref table11)},
{24, new ParserAction(Shift, ref table12)},
{26, new ParserAction(None, ref table13)},
{27, new ParserAction(Shift, ref table17)},
{29, new ParserAction(Shift, ref table18)},
{30, new ParserAction(Shift, ref table19)},
{34, new ParserAction(Shift, ref table15)},
{36, new ParserAction(Shift, ref table16)},
{38, new ParserAction(Shift, ref table20)}
};
var tableDefinition24 = new Dictionary<int, ParserAction>
{
{2, new ParserAction(None, ref table14)},
{4, new ParserAction(None, ref table48)},
{6, new ParserAction(None, ref table3)},
{7, new ParserAction(Shift, ref table4)},
{8, new ParserAction(Shift, ref table5)},
{9, new ParserAction(None, ref table6)},
{10, new ParserAction(Shift, ref table7)},
{13, new ParserAction(Shift, ref table10)},
{14, new ParserAction(Shift, ref table8)},
{19, new ParserAction(Shift, ref table9)},
{23, new ParserAction(Shift, ref table11)},
{24, new ParserAction(Shift, ref table12)},
{26, new ParserAction(None, ref table13)},
{27, new ParserAction(Shift, ref table17)},
{29, new ParserAction(Shift, ref table18)},
{30, new ParserAction(Shift, ref table19)},
{34, new ParserAction(Shift, ref table15)},
{36, new ParserAction(Shift, ref table16)},
{38, new ParserAction(Shift, ref table20)}
};
var tableDefinition25 = new Dictionary<int, ParserAction>
{
{2, new ParserAction(None, ref table14)},
{4, new ParserAction(None, ref table51)},
{6, new ParserAction(None, ref table3)},
{7, new ParserAction(Shift, ref table4)},
{8, new ParserAction(Shift, ref table5)},
{9, new ParserAction(None, ref table6)},
{10, new ParserAction(Shift, ref table7)},
{12, new ParserAction(Shift, ref table49)},
{13, new ParserAction(Shift, ref table10)},
{14, new ParserAction(Shift, ref table8)},
{17, new ParserAction(Shift, ref table50)},
{19, new ParserAction(Shift, ref table9)},
{23, new ParserAction(Shift, ref table11)},
{24, new ParserAction(Shift, ref table12)},
{26, new ParserAction(None, ref table13)},
{27, new ParserAction(Shift, ref table17)},
{29, new ParserAction(Shift, ref table18)},
{30, new ParserAction(Shift, ref table19)},
{34, new ParserAction(Shift, ref table15)},
{36, new ParserAction(Shift, ref table16)},
{38, new ParserAction(Shift, ref table20)}
};
var tableDefinition26 = new Dictionary<int, ParserAction>
{
{2, new ParserAction(None, ref table14)},
{4, new ParserAction(None, ref table53)},
{6, new ParserAction(None, ref table3)},
{7, new ParserAction(Shift, ref table4)},
{8, new ParserAction(Shift, ref table5)},
{9, new ParserAction(None, ref table6)},
{10, new ParserAction(Shift, ref table7)},
{12, new ParserAction(Shift, ref table52)},
{13, new ParserAction(Shift, ref table10)},
{14, new ParserAction(Shift, ref table8)},
{19, new ParserAction(Shift, ref table9)},
{23, new ParserAction(Shift, ref table11)},
{24, new ParserAction(Shift, ref table12)},
{26, new ParserAction(None, ref table13)},
{27, new ParserAction(Shift, ref table17)},
{29, new ParserAction(Shift, ref table18)},
{30, new ParserAction(Shift, ref table19)},
{34, new ParserAction(Shift, ref table15)},
{36, new ParserAction(Shift, ref table16)},
{38, new ParserAction(Shift, ref table20)}
};
var tableDefinition27 = new Dictionary<int, ParserAction>
{
{2, new ParserAction(None, ref table14)},
{4, new ParserAction(None, ref table54)},
{6, new ParserAction(None, ref table3)},
{7, new ParserAction(Shift, ref table4)},
{8, new ParserAction(Shift, ref table5)},
{9, new ParserAction(None, ref table6)},
{10, new ParserAction(Shift, ref table7)},
{13, new ParserAction(Shift, ref table10)},
{14, new ParserAction(Shift, ref table8)},
{19, new ParserAction(Shift, ref table9)},
{23, new ParserAction(Shift, ref table11)},
{24, new ParserAction(Shift, ref table12)},
{26, new ParserAction(None, ref table13)},
{27, new ParserAction(Shift, ref table17)},
{29, new ParserAction(Shift, ref table18)},
{30, new ParserAction(Shift, ref table19)},
{34, new ParserAction(Shift, ref table15)},
{36, new ParserAction(Shift, ref table16)},
{38, new ParserAction(Shift, ref table20)}
};
var tableDefinition28 = new Dictionary<int, ParserAction>
{
{2, new ParserAction(None, ref table14)},
{4, new ParserAction(None, ref table55)},
{6, new ParserAction(None, ref table3)},
{7, new ParserAction(Shift, ref table4)},
{8, new ParserAction(Shift, ref table5)},
{9, new ParserAction(None, ref table6)},
{10, new ParserAction(Shift, ref table7)},
{13, new ParserAction(Shift, ref table10)},
{14, new ParserAction(Shift, ref table8)},
{19, new ParserAction(Shift, ref table9)},
{23, new ParserAction(Shift, ref table11)},
{24, new ParserAction(Shift, ref table12)},
{26, new ParserAction(None, ref table13)},
{27, new ParserAction(Shift, ref table17)},
{29, new ParserAction(Shift, ref table18)},
{30, new ParserAction(Shift, ref table19)},
{34, new ParserAction(Shift, ref table15)},
{36, new ParserAction(Shift, ref table16)},
{38, new ParserAction(Shift, ref table20)}
};
var tableDefinition29 = new Dictionary<int, ParserAction>
{
{2, new ParserAction(None, ref table14)},
{4, new ParserAction(None, ref table56)},
{6, new ParserAction(None, ref table3)},
{7, new ParserAction(Shift, ref table4)},
{8, new ParserAction(Shift, ref table5)},
{9, new ParserAction(None, ref table6)},
{10, new ParserAction(Shift, ref table7)},
{13, new ParserAction(Shift, ref table10)},
{14, new ParserAction(Shift, ref table8)},
{19, new ParserAction(Shift, ref table9)},
{23, new ParserAction(Shift, ref table11)},
{24, new ParserAction(Shift, ref table12)},
{26, new ParserAction(None, ref table13)},
{27, new ParserAction(Shift, ref table17)},
{29, new ParserAction(Shift, ref table18)},
{30, new ParserAction(Shift, ref table19)},
{34, new ParserAction(Shift, ref table15)},
{36, new ParserAction(Shift, ref table16)},
{38, new ParserAction(Shift, ref table20)}
};
var tableDefinition30 = new Dictionary<int, ParserAction>
{
{2, new ParserAction(None, ref table14)},
{4, new ParserAction(None, ref table57)},
{6, new ParserAction(None, ref table3)},
{7, new ParserAction(Shift, ref table4)},
{8, new ParserAction(Shift, ref table5)},
{9, new ParserAction(None, ref table6)},
{10, new ParserAction(Shift, ref table7)},
{13, new ParserAction(Shift, ref table10)},
{14, new ParserAction(Shift, ref table8)},
{19, new ParserAction(Shift, ref table9)},
{23, new ParserAction(Shift, ref table11)},
{24, new ParserAction(Shift, ref table12)},
{26, new ParserAction(None, ref table13)},
{27, new ParserAction(Shift, ref table17)},
{29, new ParserAction(Shift, ref table18)},
{30, new ParserAction(Shift, ref table19)},
{34, new ParserAction(Shift, ref table15)},
{36, new ParserAction(Shift, ref table16)},
{38, new ParserAction(Shift, ref table20)}
};
var tableDefinition31 = new Dictionary<int, ParserAction>
{
{2, new ParserAction(None, ref table14)},
{4, new ParserAction(None, ref table58)},
{6, new ParserAction(None, ref table3)},
{7, new ParserAction(Shift, ref table4)},
{8, new ParserAction(Shift, ref table5)},
{9, new ParserAction(None, ref table6)},
{10, new ParserAction(Shift, ref table7)},
{13, new ParserAction(Shift, ref table10)},
{14, new ParserAction(Shift, ref table8)},
{19, new ParserAction(Shift, ref table9)},
{23, new ParserAction(Shift, ref table11)},
{24, new ParserAction(Shift, ref table12)},
{26, new ParserAction(None, ref table13)},
{27, new ParserAction(Shift, ref table17)},
{29, new ParserAction(Shift, ref table18)},
{30, new ParserAction(Shift, ref table19)},
{34, new ParserAction(Shift, ref table15)},
{36, new ParserAction(Shift, ref table16)},
{38, new ParserAction(Shift, ref table20)}
};
var tableDefinition32 = new Dictionary<int, ParserAction>
{
{34, new ParserAction(Shift, ref table59)}
};
var tableDefinition33 = new Dictionary<int, ParserAction>
{
{5, new ParserAction(Reduce, ref table42)},
{11, new ParserAction(Reduce, ref table42)},
{12, new ParserAction(Reduce, ref table42)},
{13, new ParserAction(Reduce, ref table42)},
{15, new ParserAction(Reduce, ref table42)},
{16, new ParserAction(Reduce, ref table42)},
{17, new ParserAction(Reduce, ref table42)},
{18, new ParserAction(Reduce, ref table42)},
{19, new ParserAction(Reduce, ref table42)},
{20, new ParserAction(Reduce, ref table42)},
{21, new ParserAction(Reduce, ref table42)},
{22, new ParserAction(Reduce, ref table42)},
{32, new ParserAction(Reduce, ref table42)},
{33, new ParserAction(Reduce, ref table42)},
{37, new ParserAction(Reduce, ref table42)}
};
var tableDefinition34 = new Dictionary<int, ParserAction>
{
{11, new ParserAction(Shift, ref table22)},
{12, new ParserAction(Shift, ref table23)},
{13, new ParserAction(Shift, ref table24)},
{15, new ParserAction(Shift, ref table60)},
{16, new ParserAction(Shift, ref table25)},
{17, new ParserAction(Shift, ref table26)},
{18, new ParserAction(Shift, ref table27)},
{19, new ParserAction(Shift, ref table28)},
{20, new ParserAction(Shift, ref table29)},
{21, new ParserAction(Shift, ref table30)},
{22, new ParserAction(Shift, ref table31)}
};
var tableDefinition35 = new Dictionary<int, ParserAction>
{
{5, new ParserAction(Reduce, ref table21)},
{11, new ParserAction(Shift, ref table22)},
{12, new ParserAction(Reduce, ref table21)},
{13, new ParserAction(Reduce, ref table21)},
{15, new ParserAction(Reduce, ref table21)},
{16, new ParserAction(Reduce, ref table21)},
{17, new ParserAction(Reduce, ref table21)},
{18, new ParserAction(Reduce, ref table21)},
{19, new ParserAction(Reduce, ref table21)},
{20, new ParserAction(Shift, ref table29)},
{21, new ParserAction(Shift, ref table30)},
{22, new ParserAction(Shift, ref table31)},
{32, new ParserAction(Reduce, ref table21)},
{33, new ParserAction(Reduce, ref table21)}
};
var tableDefinition36 = new Dictionary<int, ParserAction>
{
{5, new ParserAction(Reduce, ref table22)},
{11, new ParserAction(Shift, ref table22)},
{12, new ParserAction(Reduce, ref table22)},
{13, new ParserAction(Reduce, ref table22)},
{15, new ParserAction(Reduce, ref table22)},
{16, new ParserAction(Reduce, ref table22)},
{17, new ParserAction(Reduce, ref table22)},
{18, new ParserAction(Reduce, ref table22)},
{19, new ParserAction(Reduce, ref table22)},
{20, new ParserAction(Shift, ref table29)},
{21, new ParserAction(Shift, ref table30)},
{22, new ParserAction(Shift, ref table31)},
{32, new ParserAction(Reduce, ref table22)},
{33, new ParserAction(Reduce, ref table22)}
};
var tableDefinition37 = new Dictionary<int, ParserAction>
{
{2, new ParserAction(None, ref table14)},
{4, new ParserAction(None, ref table63)},
{6, new ParserAction(None, ref table3)},
{7, new ParserAction(Shift, ref table4)},
{8, new ParserAction(Shift, ref table5)},
{9, new ParserAction(None, ref table6)},
{10, new ParserAction(Shift, ref table7)},
{13, new ParserAction(Shift, ref table10)},
{14, new ParserAction(Shift, ref table8)},
{15, new ParserAction(Shift, ref table61)},
{19, new ParserAction(Shift, ref table9)},
{23, new ParserAction(Shift, ref table11)},
{24, new ParserAction(Shift, ref table12)},
{25, new ParserAction(None, ref table62)},
{26, new ParserAction(None, ref table13)},
{27, new ParserAction(Shift, ref table17)},
{29, new ParserAction(Shift, ref table18)},
{30, new ParserAction(Shift, ref table19)},
{34, new ParserAction(Shift, ref table15)},
{36, new ParserAction(Shift, ref table16)},
{38, new ParserAction(Shift, ref table20)}
};
var tableDefinition38 = new Dictionary<int, ParserAction>
{
{5, new ParserAction(Reduce, ref table28)},
{11, new ParserAction(Reduce, ref table28)},
{12, new ParserAction(Reduce, ref table28)},
{13, new ParserAction(Reduce, ref table28)},
{15, new ParserAction(Reduce, ref table28)},
{16, new ParserAction(Reduce, ref table28)},
{17, new ParserAction(Reduce, ref table28)},
{18, new ParserAction(Reduce, ref table28)},
{19, new ParserAction(Reduce, ref table28)},
{20, new ParserAction(Reduce, ref table28)},
{21, new ParserAction(Reduce, ref table28)},
{22, new ParserAction(Reduce, ref table28)},
{32, new ParserAction(Reduce, ref table28)},
{33, new ParserAction(Reduce, ref table28)}
};
var tableDefinition39 = new Dictionary<int, ParserAction>
{
{38, new ParserAction(Shift, ref table40)}
};
var tableDefinition40 = new Dictionary<int, ParserAction>
{
{34, new ParserAction(Shift, ref table64)}
};
var tableDefinition41 = new Dictionary<int, ParserAction>
{
{36, new ParserAction(Shift, ref table65)}
};
var tableDefinition42 = new Dictionary<int, ParserAction>
{
{27, new ParserAction(Shift, ref table66)}
};
var tableDefinition43 = new Dictionary<int, ParserAction>
{
{29, new ParserAction(Shift, ref table67)}
};
var tableDefinition44 = new Dictionary<int, ParserAction>
{
{29, new ParserAction(Shift, ref table68)}
};
var tableDefinition45 = new Dictionary<int, ParserAction>
{
{31, new ParserAction(Shift, ref table69)}
};
var tableDefinition46 = new Dictionary<int, ParserAction>
{
{5, new ParserAction(Reduce, ref table7)},
{11, new ParserAction(Shift, ref table22)},
{12, new ParserAction(Shift, ref table23)},
{13, new ParserAction(Shift, ref table24)},
{15, new ParserAction(Reduce, ref table7)},
{16, new ParserAction(Shift, ref table25)},
{17, new ParserAction(Shift, ref table26)},
{18, new ParserAction(Shift, ref table27)},
{19, new ParserAction(Shift, ref table28)},
{20, new ParserAction(Shift, ref table29)},
{21, new ParserAction(Shift, ref table30)},
{22, new ParserAction(Shift, ref table31)},
{32, new ParserAction(Reduce, ref table7)},
{33, new ParserAction(Reduce, ref table7)}
};
var tableDefinition47 = new Dictionary<int, ParserAction>
{
{5, new ParserAction(Reduce, ref table8)},
{11, new ParserAction(Shift, ref table22)},
{12, new ParserAction(Reduce, ref table8)},
{13, new ParserAction(Shift, ref table24)},