@malloydata/malloy-sql 0.0.61 → 0.0.62-dev230725225657

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -151,39 +151,31 @@ function peg$parse(input, options) {
151
151
  var peg$source = options.grammarSource;
152
152
  var peg$startRuleFunctions = { start: peg$parsestart };
153
153
  var peg$startRuleFunction = peg$parsestart;
154
- var peg$c0 = "(";
155
- var peg$c1 = ")";
156
- var peg$c2 = "%{";
157
- var peg$c3 = "}%";
158
- var peg$c4 = ">>>";
159
- var peg$c5 = "sql";
160
- var peg$c6 = "malloy";
161
- var peg$c7 = "markdown";
162
- var peg$c8 = "//";
163
- var peg$c9 = "--";
164
- var peg$c10 = "/*";
165
- var peg$c11 = "*/";
154
+ var peg$c0 = ">>>";
155
+ var peg$c1 = "sql";
156
+ var peg$c2 = "malloy";
157
+ var peg$c3 = "markdown";
158
+ var peg$c4 = "//";
159
+ var peg$c5 = "--";
160
+ var peg$c6 = "/*";
161
+ var peg$c7 = "*/";
166
162
  var peg$r0 = /^[ \t]/;
167
163
  var peg$r1 = /^[\n\r]/;
168
- var peg$e0 = peg$otherExpectation("query string");
164
+ var peg$e0 = peg$otherExpectation("cell");
169
165
  var peg$e1 = peg$anyExpectation();
170
- var peg$e2 = peg$literalExpectation("(", false);
171
- var peg$e3 = peg$literalExpectation(")", false);
172
- var peg$e4 = peg$literalExpectation("%{", false);
173
- var peg$e5 = peg$literalExpectation("}%", false);
174
- var peg$e6 = peg$literalExpectation(">>>", false);
175
- var peg$e7 = peg$literalExpectation("sql", false);
176
- var peg$e8 = peg$literalExpectation("malloy", false);
177
- var peg$e9 = peg$literalExpectation("markdown", false);
178
- var peg$e10 = peg$otherExpectation("initial comments");
179
- var peg$e11 = peg$otherExpectation("comment");
180
- var peg$e12 = peg$literalExpectation("//", false);
181
- var peg$e13 = peg$literalExpectation("--", false);
182
- var peg$e14 = peg$literalExpectation("/*", false);
183
- var peg$e15 = peg$literalExpectation("*/", false);
184
- var peg$e16 = peg$classExpectation([" ", "\t"], false, false);
185
- var peg$e17 = peg$otherExpectation("end of line");
186
- var peg$e18 = peg$classExpectation(["\n", "\r"], false, false);
166
+ var peg$e2 = peg$literalExpectation(">>>", false);
167
+ var peg$e3 = peg$literalExpectation("sql", false);
168
+ var peg$e4 = peg$literalExpectation("malloy", false);
169
+ var peg$e5 = peg$literalExpectation("markdown", false);
170
+ var peg$e6 = peg$otherExpectation("initial comments");
171
+ var peg$e7 = peg$otherExpectation("comment");
172
+ var peg$e8 = peg$literalExpectation("//", false);
173
+ var peg$e9 = peg$literalExpectation("--", false);
174
+ var peg$e10 = peg$literalExpectation("/*", false);
175
+ var peg$e11 = peg$literalExpectation("*/", false);
176
+ var peg$e12 = peg$classExpectation([" ", "\t"], false, false);
177
+ var peg$e13 = peg$otherExpectation("end of line");
178
+ var peg$e14 = peg$classExpectation(["\n", "\r"], false, false);
187
179
  var peg$f0 = function (c, s) {
188
180
  s["statementType"] = c.type;
189
181
  s["config"] = c.config;
@@ -191,26 +183,33 @@ function peg$parse(input, options) {
191
183
  return s;
192
184
  };
193
185
  var peg$f1 = function (p) {
194
- return { parts: p, range: location(), statementText: p.map((s) => { return s.text; }).join('') };
186
+ return {
187
+ parts: p,
188
+ range: location(),
189
+ statementText: p.map((s) => { return s.text; }).join('')
190
+ };
195
191
  };
196
192
  var peg$f2 = function (s) {
197
- return { type: "other", text: s, range: location() };
198
- };
199
- var peg$f3 = function (em) {
200
- return { type: "malloy", text: text(), malloy: em.malloy, malloyRange: em.malloyRange, range: location(), parenthized: true };
201
- };
202
- var peg$f4 = function (m) {
203
- return { type: "malloy", text: text(), malloy: m.text, malloyRange: m.malloyRange, range: location(), parenthized: false };
204
- };
205
- var peg$f5 = function () {
206
- return { malloyRange: location(), text: text() };
193
+ return {
194
+ type: "other",
195
+ text: s,
196
+ range: location()
197
+ };
207
198
  };
208
- var peg$f6 = function (t, oc) { return oc; };
209
- var peg$f7 = function (t, c) {
210
- return { type: t, config: c ? c.trim() : '', range: location() };
199
+ var peg$f3 = function (t, oc) { return oc; };
200
+ var peg$f4 = function (t, c) {
201
+ return {
202
+ type: t,
203
+ config: c ? c.trim() : '',
204
+ range: location()
205
+ };
211
206
  };
212
- var peg$f8 = function (c) {
213
- return { type: "comment", text: c, range: location() };
207
+ var peg$f5 = function (c) {
208
+ return {
209
+ type: "comment",
210
+ text: c,
211
+ range: location()
212
+ };
214
213
  };
215
214
  var peg$currPos = 0;
216
215
  var peg$savedPos = 0;
@@ -371,19 +370,13 @@ function peg$parse(input, options) {
371
370
  s1 = [];
372
371
  s2 = peg$parsecomment();
373
372
  if (s2 === peg$FAILED) {
374
- s2 = peg$parseembedded_malloy();
375
- if (s2 === peg$FAILED) {
376
- s2 = peg$parseother();
377
- }
373
+ s2 = peg$parsecell();
378
374
  }
379
375
  while (s2 !== peg$FAILED) {
380
376
  s1.push(s2);
381
377
  s2 = peg$parsecomment();
382
378
  if (s2 === peg$FAILED) {
383
- s2 = peg$parseembedded_malloy();
384
- if (s2 === peg$FAILED) {
385
- s2 = peg$parseother();
386
- }
379
+ s2 = peg$parsecell();
387
380
  }
388
381
  }
389
382
  peg$savedPos = s0;
@@ -391,8 +384,8 @@ function peg$parse(input, options) {
391
384
  s0 = s1;
392
385
  return s0;
393
386
  }
394
- function peg$parseother() {
395
- var s0, s1, s2, s3, s4, s5, s6, s7;
387
+ function peg$parsecell() {
388
+ var s0, s1, s2, s3, s4, s5, s6;
396
389
  peg$silentFails++;
397
390
  s0 = peg$currPos;
398
391
  s1 = peg$currPos;
@@ -422,36 +415,19 @@ function peg$parse(input, options) {
422
415
  s5 = peg$FAILED;
423
416
  }
424
417
  if (s5 !== peg$FAILED) {
425
- s6 = peg$currPos;
426
- peg$silentFails++;
427
- s7 = peg$parseembedded_malloy();
428
- peg$silentFails--;
429
- if (s7 === peg$FAILED) {
430
- s6 = undefined;
418
+ if (input.length > peg$currPos) {
419
+ s6 = input.charAt(peg$currPos);
420
+ peg$currPos++;
431
421
  }
432
422
  else {
433
- peg$currPos = s6;
434
423
  s6 = peg$FAILED;
424
+ if (peg$silentFails === 0) {
425
+ peg$fail(peg$e1);
426
+ }
435
427
  }
436
428
  if (s6 !== peg$FAILED) {
437
- if (input.length > peg$currPos) {
438
- s7 = input.charAt(peg$currPos);
439
- peg$currPos++;
440
- }
441
- else {
442
- s7 = peg$FAILED;
443
- if (peg$silentFails === 0) {
444
- peg$fail(peg$e1);
445
- }
446
- }
447
- if (s7 !== peg$FAILED) {
448
- s4 = [s4, s5, s6, s7];
449
- s3 = s4;
450
- }
451
- else {
452
- peg$currPos = s3;
453
- s3 = peg$FAILED;
454
- }
429
+ s4 = [s4, s5, s6];
430
+ s3 = s4;
455
431
  }
456
432
  else {
457
433
  peg$currPos = s3;
@@ -495,36 +471,19 @@ function peg$parse(input, options) {
495
471
  s5 = peg$FAILED;
496
472
  }
497
473
  if (s5 !== peg$FAILED) {
498
- s6 = peg$currPos;
499
- peg$silentFails++;
500
- s7 = peg$parseembedded_malloy();
501
- peg$silentFails--;
502
- if (s7 === peg$FAILED) {
503
- s6 = undefined;
474
+ if (input.length > peg$currPos) {
475
+ s6 = input.charAt(peg$currPos);
476
+ peg$currPos++;
504
477
  }
505
478
  else {
506
- peg$currPos = s6;
507
479
  s6 = peg$FAILED;
480
+ if (peg$silentFails === 0) {
481
+ peg$fail(peg$e1);
482
+ }
508
483
  }
509
484
  if (s6 !== peg$FAILED) {
510
- if (input.length > peg$currPos) {
511
- s7 = input.charAt(peg$currPos);
512
- peg$currPos++;
513
- }
514
- else {
515
- s7 = peg$FAILED;
516
- if (peg$silentFails === 0) {
517
- peg$fail(peg$e1);
518
- }
519
- }
520
- if (s7 !== peg$FAILED) {
521
- s4 = [s4, s5, s6, s7];
522
- s3 = s4;
523
- }
524
- else {
525
- peg$currPos = s3;
526
- s3 = peg$FAILED;
527
- }
485
+ s4 = [s4, s5, s6];
486
+ s3 = s4;
528
487
  }
529
488
  else {
530
489
  peg$currPos = s3;
@@ -565,204 +524,6 @@ function peg$parse(input, options) {
565
524
  }
566
525
  return s0;
567
526
  }
568
- function peg$parseembedded_malloy() {
569
- var s0;
570
- s0 = peg$parseparenthized_embedded_malloy();
571
- if (s0 === peg$FAILED) {
572
- s0 = peg$parseplain_embedded_malloy();
573
- }
574
- return s0;
575
- }
576
- function peg$parseparenthized_embedded_malloy() {
577
- var s0, s1, s2, s3, s4, s5;
578
- s0 = peg$currPos;
579
- if (input.charCodeAt(peg$currPos) === 40) {
580
- s1 = peg$c0;
581
- peg$currPos++;
582
- }
583
- else {
584
- s1 = peg$FAILED;
585
- if (peg$silentFails === 0) {
586
- peg$fail(peg$e2);
587
- }
588
- }
589
- if (s1 !== peg$FAILED) {
590
- s2 = peg$parse__();
591
- s3 = peg$parseplain_embedded_malloy();
592
- if (s3 !== peg$FAILED) {
593
- s4 = peg$parse__();
594
- if (input.charCodeAt(peg$currPos) === 41) {
595
- s5 = peg$c1;
596
- peg$currPos++;
597
- }
598
- else {
599
- s5 = peg$FAILED;
600
- if (peg$silentFails === 0) {
601
- peg$fail(peg$e3);
602
- }
603
- }
604
- if (s5 !== peg$FAILED) {
605
- peg$savedPos = s0;
606
- s0 = peg$f3(s3);
607
- }
608
- else {
609
- peg$currPos = s0;
610
- s0 = peg$FAILED;
611
- }
612
- }
613
- else {
614
- peg$currPos = s0;
615
- s0 = peg$FAILED;
616
- }
617
- }
618
- else {
619
- peg$currPos = s0;
620
- s0 = peg$FAILED;
621
- }
622
- return s0;
623
- }
624
- function peg$parseplain_embedded_malloy() {
625
- var s0, s1, s2, s3;
626
- s0 = peg$currPos;
627
- if (input.substr(peg$currPos, 2) === peg$c2) {
628
- s1 = peg$c2;
629
- peg$currPos += 2;
630
- }
631
- else {
632
- s1 = peg$FAILED;
633
- if (peg$silentFails === 0) {
634
- peg$fail(peg$e4);
635
- }
636
- }
637
- if (s1 !== peg$FAILED) {
638
- s2 = peg$parsemalloy();
639
- if (input.substr(peg$currPos, 2) === peg$c3) {
640
- s3 = peg$c3;
641
- peg$currPos += 2;
642
- }
643
- else {
644
- s3 = peg$FAILED;
645
- if (peg$silentFails === 0) {
646
- peg$fail(peg$e5);
647
- }
648
- }
649
- if (s3 !== peg$FAILED) {
650
- peg$savedPos = s0;
651
- s0 = peg$f4(s2);
652
- }
653
- else {
654
- peg$currPos = s0;
655
- s0 = peg$FAILED;
656
- }
657
- }
658
- else {
659
- peg$currPos = s0;
660
- s0 = peg$FAILED;
661
- }
662
- return s0;
663
- }
664
- function peg$parsemalloy() {
665
- var s0, s1, s2, s3, s4;
666
- s0 = peg$currPos;
667
- s1 = [];
668
- s2 = peg$currPos;
669
- s3 = peg$currPos;
670
- peg$silentFails++;
671
- if (input.substr(peg$currPos, 2) === peg$c3) {
672
- s4 = peg$c3;
673
- peg$currPos += 2;
674
- }
675
- else {
676
- s4 = peg$FAILED;
677
- if (peg$silentFails === 0) {
678
- peg$fail(peg$e5);
679
- }
680
- }
681
- peg$silentFails--;
682
- if (s4 === peg$FAILED) {
683
- s3 = undefined;
684
- }
685
- else {
686
- peg$currPos = s3;
687
- s3 = peg$FAILED;
688
- }
689
- if (s3 !== peg$FAILED) {
690
- if (input.length > peg$currPos) {
691
- s4 = input.charAt(peg$currPos);
692
- peg$currPos++;
693
- }
694
- else {
695
- s4 = peg$FAILED;
696
- if (peg$silentFails === 0) {
697
- peg$fail(peg$e1);
698
- }
699
- }
700
- if (s4 !== peg$FAILED) {
701
- s3 = [s3, s4];
702
- s2 = s3;
703
- }
704
- else {
705
- peg$currPos = s2;
706
- s2 = peg$FAILED;
707
- }
708
- }
709
- else {
710
- peg$currPos = s2;
711
- s2 = peg$FAILED;
712
- }
713
- while (s2 !== peg$FAILED) {
714
- s1.push(s2);
715
- s2 = peg$currPos;
716
- s3 = peg$currPos;
717
- peg$silentFails++;
718
- if (input.substr(peg$currPos, 2) === peg$c3) {
719
- s4 = peg$c3;
720
- peg$currPos += 2;
721
- }
722
- else {
723
- s4 = peg$FAILED;
724
- if (peg$silentFails === 0) {
725
- peg$fail(peg$e5);
726
- }
727
- }
728
- peg$silentFails--;
729
- if (s4 === peg$FAILED) {
730
- s3 = undefined;
731
- }
732
- else {
733
- peg$currPos = s3;
734
- s3 = peg$FAILED;
735
- }
736
- if (s3 !== peg$FAILED) {
737
- if (input.length > peg$currPos) {
738
- s4 = input.charAt(peg$currPos);
739
- peg$currPos++;
740
- }
741
- else {
742
- s4 = peg$FAILED;
743
- if (peg$silentFails === 0) {
744
- peg$fail(peg$e1);
745
- }
746
- }
747
- if (s4 !== peg$FAILED) {
748
- s3 = [s3, s4];
749
- s2 = s3;
750
- }
751
- else {
752
- peg$currPos = s2;
753
- s2 = peg$FAILED;
754
- }
755
- }
756
- else {
757
- peg$currPos = s2;
758
- s2 = peg$FAILED;
759
- }
760
- }
761
- peg$savedPos = s0;
762
- s1 = peg$f5();
763
- s0 = s1;
764
- return s0;
765
- }
766
527
  function peg$parsedelimiter() {
767
528
  var s0, s1, s2, s3, s4, s5;
768
529
  s0 = peg$currPos;
@@ -775,7 +536,7 @@ function peg$parse(input, options) {
775
536
  if (s4 !== peg$FAILED) {
776
537
  s5 = peg$parseoptional_config();
777
538
  peg$savedPos = s3;
778
- s3 = peg$f6(s2, s5);
539
+ s3 = peg$f3(s2, s5);
779
540
  }
780
541
  else {
781
542
  peg$currPos = s3;
@@ -794,7 +555,7 @@ function peg$parse(input, options) {
794
555
  }
795
556
  if (s5 !== peg$FAILED) {
796
557
  peg$savedPos = s0;
797
- s0 = peg$f7(s2, s3);
558
+ s0 = peg$f4(s2, s3);
798
559
  }
799
560
  else {
800
561
  peg$currPos = s0;
@@ -814,50 +575,50 @@ function peg$parse(input, options) {
814
575
  }
815
576
  function peg$parsedelimiter_start() {
816
577
  var s0;
817
- if (input.substr(peg$currPos, 3) === peg$c4) {
818
- s0 = peg$c4;
578
+ if (input.substr(peg$currPos, 3) === peg$c0) {
579
+ s0 = peg$c0;
819
580
  peg$currPos += 3;
820
581
  }
821
582
  else {
822
583
  s0 = peg$FAILED;
823
584
  if (peg$silentFails === 0) {
824
- peg$fail(peg$e6);
585
+ peg$fail(peg$e2);
825
586
  }
826
587
  }
827
588
  return s0;
828
589
  }
829
590
  function peg$parsestatement_type() {
830
591
  var s0;
831
- if (input.substr(peg$currPos, 3) === peg$c5) {
832
- s0 = peg$c5;
592
+ if (input.substr(peg$currPos, 3) === peg$c1) {
593
+ s0 = peg$c1;
833
594
  peg$currPos += 3;
834
595
  }
835
596
  else {
836
597
  s0 = peg$FAILED;
837
598
  if (peg$silentFails === 0) {
838
- peg$fail(peg$e7);
599
+ peg$fail(peg$e3);
839
600
  }
840
601
  }
841
602
  if (s0 === peg$FAILED) {
842
- if (input.substr(peg$currPos, 6) === peg$c6) {
843
- s0 = peg$c6;
603
+ if (input.substr(peg$currPos, 6) === peg$c2) {
604
+ s0 = peg$c2;
844
605
  peg$currPos += 6;
845
606
  }
846
607
  else {
847
608
  s0 = peg$FAILED;
848
609
  if (peg$silentFails === 0) {
849
- peg$fail(peg$e8);
610
+ peg$fail(peg$e4);
850
611
  }
851
612
  }
852
613
  if (s0 === peg$FAILED) {
853
- if (input.substr(peg$currPos, 8) === peg$c7) {
854
- s0 = peg$c7;
614
+ if (input.substr(peg$currPos, 8) === peg$c3) {
615
+ s0 = peg$c3;
855
616
  peg$currPos += 8;
856
617
  }
857
618
  else {
858
619
  s0 = peg$FAILED;
859
620
  if (peg$silentFails === 0) {
860
- peg$fail(peg$e9);
621
+ peg$fail(peg$e5);
861
622
  }
862
623
  }
863
624
  }
@@ -1006,7 +767,7 @@ function peg$parse(input, options) {
1006
767
  peg$silentFails--;
1007
768
  s1 = peg$FAILED;
1008
769
  if (peg$silentFails === 0) {
1009
- peg$fail(peg$e10);
770
+ peg$fail(peg$e6);
1010
771
  }
1011
772
  return s0;
1012
773
  }
@@ -1020,14 +781,14 @@ function peg$parse(input, options) {
1020
781
  }
1021
782
  if (s1 !== peg$FAILED) {
1022
783
  peg$savedPos = s0;
1023
- s1 = peg$f8(s1);
784
+ s1 = peg$f5(s1);
1024
785
  }
1025
786
  s0 = s1;
1026
787
  peg$silentFails--;
1027
788
  if (s0 === peg$FAILED) {
1028
789
  s1 = peg$FAILED;
1029
790
  if (peg$silentFails === 0) {
1030
- peg$fail(peg$e11);
791
+ peg$fail(peg$e7);
1031
792
  }
1032
793
  }
1033
794
  return s0;
@@ -1036,25 +797,25 @@ function peg$parse(input, options) {
1036
797
  var s0, s1, s2, s3, s4, s5, s6;
1037
798
  s0 = peg$currPos;
1038
799
  s1 = peg$currPos;
1039
- if (input.substr(peg$currPos, 2) === peg$c8) {
1040
- s2 = peg$c8;
800
+ if (input.substr(peg$currPos, 2) === peg$c4) {
801
+ s2 = peg$c4;
1041
802
  peg$currPos += 2;
1042
803
  }
1043
804
  else {
1044
805
  s2 = peg$FAILED;
1045
806
  if (peg$silentFails === 0) {
1046
- peg$fail(peg$e12);
807
+ peg$fail(peg$e8);
1047
808
  }
1048
809
  }
1049
810
  if (s2 === peg$FAILED) {
1050
- if (input.substr(peg$currPos, 2) === peg$c9) {
1051
- s2 = peg$c9;
811
+ if (input.substr(peg$currPos, 2) === peg$c5) {
812
+ s2 = peg$c5;
1052
813
  peg$currPos += 2;
1053
814
  }
1054
815
  else {
1055
816
  s2 = peg$FAILED;
1056
817
  if (peg$silentFails === 0) {
1057
- peg$fail(peg$e13);
818
+ peg$fail(peg$e9);
1058
819
  }
1059
820
  }
1060
821
  }
@@ -1165,14 +926,14 @@ function peg$parse(input, options) {
1165
926
  var s0, s1, s2, s3, s4, s5, s6;
1166
927
  s0 = peg$currPos;
1167
928
  s1 = peg$currPos;
1168
- if (input.substr(peg$currPos, 2) === peg$c10) {
1169
- s2 = peg$c10;
929
+ if (input.substr(peg$currPos, 2) === peg$c6) {
930
+ s2 = peg$c6;
1170
931
  peg$currPos += 2;
1171
932
  }
1172
933
  else {
1173
934
  s2 = peg$FAILED;
1174
935
  if (peg$silentFails === 0) {
1175
- peg$fail(peg$e14);
936
+ peg$fail(peg$e10);
1176
937
  }
1177
938
  }
1178
939
  if (s2 !== peg$FAILED) {
@@ -1180,14 +941,14 @@ function peg$parse(input, options) {
1180
941
  s4 = peg$currPos;
1181
942
  s5 = peg$currPos;
1182
943
  peg$silentFails++;
1183
- if (input.substr(peg$currPos, 2) === peg$c11) {
1184
- s6 = peg$c11;
944
+ if (input.substr(peg$currPos, 2) === peg$c7) {
945
+ s6 = peg$c7;
1185
946
  peg$currPos += 2;
1186
947
  }
1187
948
  else {
1188
949
  s6 = peg$FAILED;
1189
950
  if (peg$silentFails === 0) {
1190
- peg$fail(peg$e15);
951
+ peg$fail(peg$e11);
1191
952
  }
1192
953
  }
1193
954
  peg$silentFails--;
@@ -1227,14 +988,14 @@ function peg$parse(input, options) {
1227
988
  s4 = peg$currPos;
1228
989
  s5 = peg$currPos;
1229
990
  peg$silentFails++;
1230
- if (input.substr(peg$currPos, 2) === peg$c11) {
1231
- s6 = peg$c11;
991
+ if (input.substr(peg$currPos, 2) === peg$c7) {
992
+ s6 = peg$c7;
1232
993
  peg$currPos += 2;
1233
994
  }
1234
995
  else {
1235
996
  s6 = peg$FAILED;
1236
997
  if (peg$silentFails === 0) {
1237
- peg$fail(peg$e15);
998
+ peg$fail(peg$e11);
1238
999
  }
1239
1000
  }
1240
1001
  peg$silentFails--;
@@ -1270,14 +1031,14 @@ function peg$parse(input, options) {
1270
1031
  s4 = peg$FAILED;
1271
1032
  }
1272
1033
  }
1273
- if (input.substr(peg$currPos, 2) === peg$c11) {
1274
- s4 = peg$c11;
1034
+ if (input.substr(peg$currPos, 2) === peg$c7) {
1035
+ s4 = peg$c7;
1275
1036
  peg$currPos += 2;
1276
1037
  }
1277
1038
  else {
1278
1039
  s4 = peg$FAILED;
1279
1040
  if (peg$silentFails === 0) {
1280
- peg$fail(peg$e15);
1041
+ peg$fail(peg$e11);
1281
1042
  }
1282
1043
  }
1283
1044
  if (s4 !== peg$FAILED) {
@@ -1320,7 +1081,7 @@ function peg$parse(input, options) {
1320
1081
  else {
1321
1082
  s0 = peg$FAILED;
1322
1083
  if (peg$silentFails === 0) {
1323
- peg$fail(peg$e16);
1084
+ peg$fail(peg$e12);
1324
1085
  }
1325
1086
  }
1326
1087
  return s0;
@@ -1335,14 +1096,14 @@ function peg$parse(input, options) {
1335
1096
  else {
1336
1097
  s0 = peg$FAILED;
1337
1098
  if (peg$silentFails === 0) {
1338
- peg$fail(peg$e18);
1099
+ peg$fail(peg$e14);
1339
1100
  }
1340
1101
  }
1341
1102
  peg$silentFails--;
1342
1103
  if (s0 === peg$FAILED) {
1343
1104
  s1 = peg$FAILED;
1344
1105
  if (peg$silentFails === 0) {
1345
- peg$fail(peg$e17);
1106
+ peg$fail(peg$e13);
1346
1107
  }
1347
1108
  }
1348
1109
  return s0;