@weborigami/language 0.0.39 → 0.0.40

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.
@@ -219,41 +219,76 @@ function peg$parse(input, options) {
219
219
  var peg$r3 = /^[ \t]/;
220
220
  var peg$r4 = /^[+\-]/;
221
221
 
222
- var peg$e0 = peg$literalExpectation("=", false);
223
- var peg$e1 = peg$literalExpectation("[", false);
224
- var peg$e2 = peg$literalExpectation("]", false);
225
- var peg$e3 = peg$literalExpectation("#", false);
226
- var peg$e4 = peg$classExpectation(["\n", "\r"], true, false);
227
- var peg$e5 = peg$classExpectation([["0", "9"]], false, false);
228
- var peg$e6 = peg$literalExpectation("\"", false);
229
- var peg$e7 = peg$literalExpectation("\\", false);
230
- var peg$e8 = peg$anyExpectation();
231
- var peg$e9 = peg$otherExpectation("Origami expression");
232
- var peg$e10 = peg$literalExpectation(".", false);
233
- var peg$e11 = peg$literalExpectation("(", false);
234
- var peg$e12 = peg$literalExpectation(")", false);
235
- var peg$e13 = peg$classExpectation(["(", ")", "{", "}", "[", "]", ",", "/", ":", "=", "`", "\"", "'", "\\", "#", " ", "\t", "\n", "\r"], true, false);
236
- var peg$e14 = peg$literalExpectation(":", false);
237
- var peg$e15 = peg$classExpectation([" ", "\t"], false, false);
238
- var peg$e16 = peg$literalExpectation("/", false);
239
- var peg$e17 = peg$literalExpectation("\n", false);
240
- var peg$e18 = peg$literalExpectation("\r\n", false);
241
- var peg$e19 = peg$literalExpectation("\r", false);
242
- var peg$e20 = peg$literalExpectation("{", false);
243
- var peg$e21 = peg$literalExpectation("}", false);
244
- var peg$e22 = peg$literalExpectation(",", false);
245
- var peg$e23 = peg$classExpectation(["+", "-"], false, false);
246
- var peg$e24 = peg$literalExpectation("https", false);
247
- var peg$e25 = peg$literalExpectation("http", false);
248
- var peg$e26 = peg$literalExpectation("package", false);
249
- var peg$e27 = peg$literalExpectation("treehttps", false);
250
- var peg$e28 = peg$literalExpectation("treehttp", false);
251
- var peg$e29 = peg$literalExpectation("tree", false);
252
- var peg$e30 = peg$literalExpectation("'", false);
253
- var peg$e31 = peg$otherExpectation("Origami template");
254
- var peg$e32 = peg$literalExpectation("{{", false);
255
- var peg$e33 = peg$literalExpectation("`", false);
256
- var peg$e34 = peg$literalExpectation("}}", false);
222
+ var peg$e0 = peg$otherExpectation("absolute file path");
223
+ var peg$e1 = peg$otherExpectation("function arguments");
224
+ var peg$e2 = peg$otherExpectation("tree assignment");
225
+ var peg$e3 = peg$literalExpectation("=", false);
226
+ var peg$e4 = peg$otherExpectation("array");
227
+ var peg$e5 = peg$literalExpectation("[", false);
228
+ var peg$e6 = peg$literalExpectation("]", false);
229
+ var peg$e7 = peg$otherExpectation("function call");
230
+ var peg$e8 = peg$otherExpectation("comment");
231
+ var peg$e9 = peg$literalExpectation("#", false);
232
+ var peg$e10 = peg$classExpectation(["\n", "\r"], true, false);
233
+ var peg$e11 = peg$classExpectation([["0", "9"]], false, false);
234
+ var peg$e12 = peg$otherExpectation("double quote string");
235
+ var peg$e13 = peg$literalExpectation("\"", false);
236
+ var peg$e14 = peg$otherExpectation("backslash-escaped character");
237
+ var peg$e15 = peg$literalExpectation("\\", false);
238
+ var peg$e16 = peg$anyExpectation();
239
+ var peg$e17 = peg$otherExpectation("expression");
240
+ var peg$e18 = peg$otherExpectation("Origami expression");
241
+ var peg$e19 = peg$otherExpectation("floating-point number");
242
+ var peg$e20 = peg$literalExpectation(".", false);
243
+ var peg$e21 = peg$otherExpectation("function composition");
244
+ var peg$e22 = peg$otherExpectation("parenthetical group");
245
+ var peg$e23 = peg$literalExpectation("(", false);
246
+ var peg$e24 = peg$literalExpectation(")", false);
247
+ var peg$e25 = peg$otherExpectation("identifier");
248
+ var peg$e26 = peg$classExpectation(["(", ")", "{", "}", "[", "]", ",", "/", ":", "=", "`", "\"", "'", "\\", "#", " ", "\t", "\n", "\r"], true, false);
249
+ var peg$e27 = peg$otherExpectation("function call with implicit parentheses");
250
+ var peg$e28 = peg$otherExpectation("HTTP/HTTPS host");
251
+ var peg$e29 = peg$literalExpectation(":", false);
252
+ var peg$e30 = peg$classExpectation([" ", "\t"], false, false);
253
+ var peg$e31 = peg$otherExpectation("integer");
254
+ var peg$e32 = peg$otherExpectation("lambda function");
255
+ var peg$e33 = peg$otherExpectation("path with a leading slash");
256
+ var peg$e34 = peg$literalExpectation("/", false);
257
+ var peg$e35 = peg$otherExpectation("list");
258
+ var peg$e36 = peg$literalExpectation("\n", false);
259
+ var peg$e37 = peg$literalExpectation("\r\n", false);
260
+ var peg$e38 = peg$literalExpectation("\r", false);
261
+ var peg$e39 = peg$otherExpectation("number");
262
+ var peg$e40 = peg$otherExpectation("object literal");
263
+ var peg$e41 = peg$literalExpectation("{", false);
264
+ var peg$e42 = peg$literalExpectation("}", false);
265
+ var peg$e43 = peg$otherExpectation("object property");
266
+ var peg$e44 = peg$otherExpectation("function arguments in parentheses");
267
+ var peg$e45 = peg$literalExpectation(",", false);
268
+ var peg$e46 = peg$classExpectation(["+", "-"], false, false);
269
+ var peg$e47 = peg$otherExpectation("slash-separated path");
270
+ var peg$e48 = peg$otherExpectation("path element");
271
+ var peg$e49 = peg$otherExpectation("function call using protocol: syntax");
272
+ var peg$e50 = peg$otherExpectation("protocol");
273
+ var peg$e51 = peg$otherExpectation("reserved protocol");
274
+ var peg$e52 = peg$literalExpectation("https", false);
275
+ var peg$e53 = peg$literalExpectation("http", false);
276
+ var peg$e54 = peg$literalExpectation("package", false);
277
+ var peg$e55 = peg$literalExpectation("treehttps", false);
278
+ var peg$e56 = peg$literalExpectation("treehttp", false);
279
+ var peg$e57 = peg$literalExpectation("tree", false);
280
+ var peg$e58 = peg$otherExpectation("scope reference");
281
+ var peg$e59 = peg$otherExpectation("single quote string");
282
+ var peg$e60 = peg$literalExpectation("'", false);
283
+ var peg$e61 = peg$otherExpectation("string");
284
+ var peg$e62 = peg$otherExpectation("template");
285
+ var peg$e63 = peg$literalExpectation("{{", false);
286
+ var peg$e64 = peg$otherExpectation("template text");
287
+ var peg$e65 = peg$otherExpectation("template literal");
288
+ var peg$e66 = peg$literalExpectation("`", false);
289
+ var peg$e67 = peg$otherExpectation("template substitution");
290
+ var peg$e68 = peg$literalExpectation("}}", false);
291
+ var peg$e69 = peg$otherExpectation("tree literal");
257
292
 
258
293
  var peg$f0 = function() { return ""; };
259
294
  var peg$f1 = function(path) { return [[ops.filesRoot], ...path]; };
@@ -497,6 +532,7 @@ function peg$parse(input, options) {
497
532
  function peg$parseabsoluteFilePath() {
498
533
  var s0, s1;
499
534
 
535
+ peg$silentFails++;
500
536
  s0 = peg$currPos;
501
537
  s1 = peg$parseleadingSlashPath();
502
538
  if (s1 !== peg$FAILED) {
@@ -504,6 +540,11 @@ function peg$parse(input, options) {
504
540
  s1 = peg$f1(s1);
505
541
  }
506
542
  s0 = s1;
543
+ peg$silentFails--;
544
+ if (s0 === peg$FAILED) {
545
+ s1 = peg$FAILED;
546
+ if (peg$silentFails === 0) { peg$fail(peg$e0); }
547
+ }
507
548
 
508
549
  return s0;
509
550
  }
@@ -511,6 +552,7 @@ function peg$parse(input, options) {
511
552
  function peg$parseargsChain() {
512
553
  var s0, s1, s2;
513
554
 
555
+ peg$silentFails++;
514
556
  s0 = peg$currPos;
515
557
  s1 = [];
516
558
  s2 = peg$parseparensArgs();
@@ -533,6 +575,11 @@ function peg$parse(input, options) {
533
575
  s1 = peg$f2(s1);
534
576
  }
535
577
  s0 = s1;
578
+ peg$silentFails--;
579
+ if (s0 === peg$FAILED) {
580
+ s1 = peg$FAILED;
581
+ if (peg$silentFails === 0) { peg$fail(peg$e1); }
582
+ }
536
583
 
537
584
  return s0;
538
585
  }
@@ -540,6 +587,7 @@ function peg$parse(input, options) {
540
587
  function peg$parseassignment() {
541
588
  var s0, s1, s2, s3, s4, s5;
542
589
 
590
+ peg$silentFails++;
543
591
  s0 = peg$currPos;
544
592
  s1 = peg$parseidentifier();
545
593
  if (s1 !== peg$FAILED) {
@@ -549,7 +597,7 @@ function peg$parse(input, options) {
549
597
  peg$currPos++;
550
598
  } else {
551
599
  s3 = peg$FAILED;
552
- if (peg$silentFails === 0) { peg$fail(peg$e0); }
600
+ if (peg$silentFails === 0) { peg$fail(peg$e3); }
553
601
  }
554
602
  if (s3 !== peg$FAILED) {
555
603
  s4 = peg$parse__();
@@ -568,6 +616,11 @@ function peg$parse(input, options) {
568
616
  peg$currPos = s0;
569
617
  s0 = peg$FAILED;
570
618
  }
619
+ peg$silentFails--;
620
+ if (s0 === peg$FAILED) {
621
+ s1 = peg$FAILED;
622
+ if (peg$silentFails === 0) { peg$fail(peg$e2); }
623
+ }
571
624
 
572
625
  return s0;
573
626
  }
@@ -592,13 +645,14 @@ function peg$parse(input, options) {
592
645
  function peg$parsearray() {
593
646
  var s0, s1, s2, s3, s4;
594
647
 
648
+ peg$silentFails++;
595
649
  s0 = peg$currPos;
596
650
  if (input.charCodeAt(peg$currPos) === 91) {
597
651
  s1 = peg$c1;
598
652
  peg$currPos++;
599
653
  } else {
600
654
  s1 = peg$FAILED;
601
- if (peg$silentFails === 0) { peg$fail(peg$e1); }
655
+ if (peg$silentFails === 0) { peg$fail(peg$e5); }
602
656
  }
603
657
  if (s1 !== peg$FAILED) {
604
658
  s2 = peg$parse__();
@@ -611,7 +665,7 @@ function peg$parse(input, options) {
611
665
  peg$currPos++;
612
666
  } else {
613
667
  s4 = peg$FAILED;
614
- if (peg$silentFails === 0) { peg$fail(peg$e2); }
668
+ if (peg$silentFails === 0) { peg$fail(peg$e6); }
615
669
  }
616
670
  if (s4 !== peg$FAILED) {
617
671
  peg$savedPos = s0;
@@ -624,13 +678,19 @@ function peg$parse(input, options) {
624
678
  peg$currPos = s0;
625
679
  s0 = peg$FAILED;
626
680
  }
681
+ peg$silentFails--;
682
+ if (s0 === peg$FAILED) {
683
+ s1 = peg$FAILED;
684
+ if (peg$silentFails === 0) { peg$fail(peg$e4); }
685
+ }
627
686
 
628
687
  return s0;
629
688
  }
630
689
 
631
690
  function peg$parsecallTarget() {
632
- var s0;
691
+ var s0, s1;
633
692
 
693
+ peg$silentFails++;
634
694
  s0 = peg$parseabsoluteFilePath();
635
695
  if (s0 === peg$FAILED) {
636
696
  s0 = peg$parsearray();
@@ -653,6 +713,11 @@ function peg$parse(input, options) {
653
713
  }
654
714
  }
655
715
  }
716
+ peg$silentFails--;
717
+ if (s0 === peg$FAILED) {
718
+ s1 = peg$FAILED;
719
+ if (peg$silentFails === 0) { peg$fail(peg$e7); }
720
+ }
656
721
 
657
722
  return s0;
658
723
  }
@@ -660,13 +725,14 @@ function peg$parse(input, options) {
660
725
  function peg$parsecomment() {
661
726
  var s0, s1, s2, s3;
662
727
 
728
+ peg$silentFails++;
663
729
  s0 = peg$currPos;
664
730
  if (input.charCodeAt(peg$currPos) === 35) {
665
731
  s1 = peg$c3;
666
732
  peg$currPos++;
667
733
  } else {
668
734
  s1 = peg$FAILED;
669
- if (peg$silentFails === 0) { peg$fail(peg$e3); }
735
+ if (peg$silentFails === 0) { peg$fail(peg$e9); }
670
736
  }
671
737
  if (s1 !== peg$FAILED) {
672
738
  s2 = [];
@@ -675,7 +741,7 @@ function peg$parse(input, options) {
675
741
  peg$currPos++;
676
742
  } else {
677
743
  s3 = peg$FAILED;
678
- if (peg$silentFails === 0) { peg$fail(peg$e4); }
744
+ if (peg$silentFails === 0) { peg$fail(peg$e10); }
679
745
  }
680
746
  while (s3 !== peg$FAILED) {
681
747
  s2.push(s3);
@@ -684,7 +750,7 @@ function peg$parse(input, options) {
684
750
  peg$currPos++;
685
751
  } else {
686
752
  s3 = peg$FAILED;
687
- if (peg$silentFails === 0) { peg$fail(peg$e4); }
753
+ if (peg$silentFails === 0) { peg$fail(peg$e10); }
688
754
  }
689
755
  }
690
756
  s1 = [s1, s2];
@@ -693,6 +759,11 @@ function peg$parse(input, options) {
693
759
  peg$currPos = s0;
694
760
  s0 = peg$FAILED;
695
761
  }
762
+ peg$silentFails--;
763
+ if (s0 === peg$FAILED) {
764
+ s1 = peg$FAILED;
765
+ if (peg$silentFails === 0) { peg$fail(peg$e8); }
766
+ }
696
767
 
697
768
  return s0;
698
769
  }
@@ -707,7 +778,7 @@ function peg$parse(input, options) {
707
778
  peg$currPos++;
708
779
  } else {
709
780
  s2 = peg$FAILED;
710
- if (peg$silentFails === 0) { peg$fail(peg$e5); }
781
+ if (peg$silentFails === 0) { peg$fail(peg$e11); }
711
782
  }
712
783
  if (s2 !== peg$FAILED) {
713
784
  while (s2 !== peg$FAILED) {
@@ -717,7 +788,7 @@ function peg$parse(input, options) {
717
788
  peg$currPos++;
718
789
  } else {
719
790
  s2 = peg$FAILED;
720
- if (peg$silentFails === 0) { peg$fail(peg$e5); }
791
+ if (peg$silentFails === 0) { peg$fail(peg$e11); }
721
792
  }
722
793
  }
723
794
  } else {
@@ -736,13 +807,14 @@ function peg$parse(input, options) {
736
807
  function peg$parsedoubleQuoteString() {
737
808
  var s0, s1, s2, s3;
738
809
 
810
+ peg$silentFails++;
739
811
  s0 = peg$currPos;
740
812
  if (input.charCodeAt(peg$currPos) === 34) {
741
813
  s1 = peg$c4;
742
814
  peg$currPos++;
743
815
  } else {
744
816
  s1 = peg$FAILED;
745
- if (peg$silentFails === 0) { peg$fail(peg$e6); }
817
+ if (peg$silentFails === 0) { peg$fail(peg$e13); }
746
818
  }
747
819
  if (s1 !== peg$FAILED) {
748
820
  s2 = [];
@@ -756,7 +828,7 @@ function peg$parse(input, options) {
756
828
  peg$currPos++;
757
829
  } else {
758
830
  s3 = peg$FAILED;
759
- if (peg$silentFails === 0) { peg$fail(peg$e6); }
831
+ if (peg$silentFails === 0) { peg$fail(peg$e13); }
760
832
  }
761
833
  if (s3 !== peg$FAILED) {
762
834
  peg$savedPos = s0;
@@ -769,6 +841,11 @@ function peg$parse(input, options) {
769
841
  peg$currPos = s0;
770
842
  s0 = peg$FAILED;
771
843
  }
844
+ peg$silentFails--;
845
+ if (s0 === peg$FAILED) {
846
+ s1 = peg$FAILED;
847
+ if (peg$silentFails === 0) { peg$fail(peg$e12); }
848
+ }
772
849
 
773
850
  return s0;
774
851
  }
@@ -784,7 +861,7 @@ function peg$parse(input, options) {
784
861
  peg$currPos++;
785
862
  } else {
786
863
  s2 = peg$FAILED;
787
- if (peg$silentFails === 0) { peg$fail(peg$e6); }
864
+ if (peg$silentFails === 0) { peg$fail(peg$e13); }
788
865
  }
789
866
  if (s2 === peg$FAILED) {
790
867
  s2 = peg$parsenewLine();
@@ -815,13 +892,14 @@ function peg$parse(input, options) {
815
892
  function peg$parseescapedChar() {
816
893
  var s0, s1, s2;
817
894
 
895
+ peg$silentFails++;
818
896
  s0 = peg$currPos;
819
897
  if (input.charCodeAt(peg$currPos) === 92) {
820
898
  s1 = peg$c5;
821
899
  peg$currPos++;
822
900
  } else {
823
901
  s1 = peg$FAILED;
824
- if (peg$silentFails === 0) { peg$fail(peg$e7); }
902
+ if (peg$silentFails === 0) { peg$fail(peg$e15); }
825
903
  }
826
904
  if (s1 !== peg$FAILED) {
827
905
  if (input.length > peg$currPos) {
@@ -829,7 +907,7 @@ function peg$parse(input, options) {
829
907
  peg$currPos++;
830
908
  } else {
831
909
  s2 = peg$FAILED;
832
- if (peg$silentFails === 0) { peg$fail(peg$e8); }
910
+ if (peg$silentFails === 0) { peg$fail(peg$e16); }
833
911
  }
834
912
  if (s2 !== peg$FAILED) {
835
913
  s0 = s2;
@@ -841,13 +919,19 @@ function peg$parse(input, options) {
841
919
  peg$currPos = s0;
842
920
  s0 = peg$FAILED;
843
921
  }
922
+ peg$silentFails--;
923
+ if (s0 === peg$FAILED) {
924
+ s1 = peg$FAILED;
925
+ if (peg$silentFails === 0) { peg$fail(peg$e14); }
926
+ }
844
927
 
845
928
  return s0;
846
929
  }
847
930
 
848
931
  function peg$parseexpr() {
849
- var s0;
932
+ var s0, s1;
850
933
 
934
+ peg$silentFails++;
851
935
  s0 = peg$parseimplicitParensCall();
852
936
  if (s0 === peg$FAILED) {
853
937
  s0 = peg$parsefunctionComposition();
@@ -885,6 +969,11 @@ function peg$parse(input, options) {
885
969
  }
886
970
  }
887
971
  }
972
+ peg$silentFails--;
973
+ if (s0 === peg$FAILED) {
974
+ s1 = peg$FAILED;
975
+ if (peg$silentFails === 0) { peg$fail(peg$e17); }
976
+ }
888
977
 
889
978
  return s0;
890
979
  }
@@ -906,7 +995,7 @@ function peg$parse(input, options) {
906
995
  peg$silentFails--;
907
996
  if (s0 === peg$FAILED) {
908
997
  s1 = peg$FAILED;
909
- if (peg$silentFails === 0) { peg$fail(peg$e9); }
998
+ if (peg$silentFails === 0) { peg$fail(peg$e18); }
910
999
  }
911
1000
 
912
1001
  return s0;
@@ -915,6 +1004,7 @@ function peg$parse(input, options) {
915
1004
  function peg$parsefloat() {
916
1005
  var s0, s1, s2, s3, s4;
917
1006
 
1007
+ peg$silentFails++;
918
1008
  s0 = peg$currPos;
919
1009
  s1 = peg$parsesign();
920
1010
  if (s1 === peg$FAILED) {
@@ -929,7 +1019,7 @@ function peg$parse(input, options) {
929
1019
  peg$currPos++;
930
1020
  } else {
931
1021
  s3 = peg$FAILED;
932
- if (peg$silentFails === 0) { peg$fail(peg$e10); }
1022
+ if (peg$silentFails === 0) { peg$fail(peg$e20); }
933
1023
  }
934
1024
  if (s3 !== peg$FAILED) {
935
1025
  s4 = peg$parsedigits();
@@ -944,6 +1034,11 @@ function peg$parse(input, options) {
944
1034
  peg$currPos = s0;
945
1035
  s0 = peg$FAILED;
946
1036
  }
1037
+ peg$silentFails--;
1038
+ if (s0 === peg$FAILED) {
1039
+ s1 = peg$FAILED;
1040
+ if (peg$silentFails === 0) { peg$fail(peg$e19); }
1041
+ }
947
1042
 
948
1043
  return s0;
949
1044
  }
@@ -951,6 +1046,7 @@ function peg$parse(input, options) {
951
1046
  function peg$parsefunctionComposition() {
952
1047
  var s0, s1, s2;
953
1048
 
1049
+ peg$silentFails++;
954
1050
  s0 = peg$currPos;
955
1051
  s1 = peg$parsecallTarget();
956
1052
  if (s1 !== peg$FAILED) {
@@ -966,6 +1062,11 @@ function peg$parse(input, options) {
966
1062
  peg$currPos = s0;
967
1063
  s0 = peg$FAILED;
968
1064
  }
1065
+ peg$silentFails--;
1066
+ if (s0 === peg$FAILED) {
1067
+ s1 = peg$FAILED;
1068
+ if (peg$silentFails === 0) { peg$fail(peg$e21); }
1069
+ }
969
1070
 
970
1071
  return s0;
971
1072
  }
@@ -973,13 +1074,14 @@ function peg$parse(input, options) {
973
1074
  function peg$parsegroup() {
974
1075
  var s0, s1, s2, s3, s4, s5;
975
1076
 
1077
+ peg$silentFails++;
976
1078
  s0 = peg$currPos;
977
1079
  if (input.charCodeAt(peg$currPos) === 40) {
978
1080
  s1 = peg$c7;
979
1081
  peg$currPos++;
980
1082
  } else {
981
1083
  s1 = peg$FAILED;
982
- if (peg$silentFails === 0) { peg$fail(peg$e11); }
1084
+ if (peg$silentFails === 0) { peg$fail(peg$e23); }
983
1085
  }
984
1086
  if (s1 !== peg$FAILED) {
985
1087
  s2 = peg$parse__();
@@ -991,7 +1093,7 @@ function peg$parse(input, options) {
991
1093
  peg$currPos++;
992
1094
  } else {
993
1095
  s5 = peg$FAILED;
994
- if (peg$silentFails === 0) { peg$fail(peg$e12); }
1096
+ if (peg$silentFails === 0) { peg$fail(peg$e24); }
995
1097
  }
996
1098
  if (s5 !== peg$FAILED) {
997
1099
  s0 = s3;
@@ -1007,6 +1109,11 @@ function peg$parse(input, options) {
1007
1109
  peg$currPos = s0;
1008
1110
  s0 = peg$FAILED;
1009
1111
  }
1112
+ peg$silentFails--;
1113
+ if (s0 === peg$FAILED) {
1114
+ s1 = peg$FAILED;
1115
+ if (peg$silentFails === 0) { peg$fail(peg$e22); }
1116
+ }
1010
1117
 
1011
1118
  return s0;
1012
1119
  }
@@ -1014,6 +1121,7 @@ function peg$parse(input, options) {
1014
1121
  function peg$parseidentifier() {
1015
1122
  var s0, s1, s2;
1016
1123
 
1124
+ peg$silentFails++;
1017
1125
  s0 = peg$currPos;
1018
1126
  s1 = [];
1019
1127
  s2 = peg$parseidentifierChar();
@@ -1030,6 +1138,11 @@ function peg$parse(input, options) {
1030
1138
  s1 = peg$f8(s1);
1031
1139
  }
1032
1140
  s0 = s1;
1141
+ peg$silentFails--;
1142
+ if (s0 === peg$FAILED) {
1143
+ s1 = peg$FAILED;
1144
+ if (peg$silentFails === 0) { peg$fail(peg$e25); }
1145
+ }
1033
1146
 
1034
1147
  return s0;
1035
1148
  }
@@ -1042,7 +1155,7 @@ function peg$parse(input, options) {
1042
1155
  peg$currPos++;
1043
1156
  } else {
1044
1157
  s0 = peg$FAILED;
1045
- if (peg$silentFails === 0) { peg$fail(peg$e13); }
1158
+ if (peg$silentFails === 0) { peg$fail(peg$e26); }
1046
1159
  }
1047
1160
  if (s0 === peg$FAILED) {
1048
1161
  s0 = peg$parseescapedChar();
@@ -1054,6 +1167,7 @@ function peg$parse(input, options) {
1054
1167
  function peg$parseimplicitParensCall() {
1055
1168
  var s0, s1, s2, s3;
1056
1169
 
1170
+ peg$silentFails++;
1057
1171
  s0 = peg$currPos;
1058
1172
  s1 = peg$parsefunctionComposition();
1059
1173
  if (s1 === peg$FAILED) {
@@ -1087,6 +1201,11 @@ function peg$parse(input, options) {
1087
1201
  peg$currPos = s0;
1088
1202
  s0 = peg$FAILED;
1089
1203
  }
1204
+ peg$silentFails--;
1205
+ if (s0 === peg$FAILED) {
1206
+ s1 = peg$FAILED;
1207
+ if (peg$silentFails === 0) { peg$fail(peg$e27); }
1208
+ }
1090
1209
 
1091
1210
  return s0;
1092
1211
  }
@@ -1094,6 +1213,7 @@ function peg$parse(input, options) {
1094
1213
  function peg$parsehost() {
1095
1214
  var s0, s1, s2, s3, s4;
1096
1215
 
1216
+ peg$silentFails++;
1097
1217
  s0 = peg$currPos;
1098
1218
  s1 = peg$parseidentifier();
1099
1219
  if (s1 !== peg$FAILED) {
@@ -1103,7 +1223,7 @@ function peg$parse(input, options) {
1103
1223
  peg$currPos++;
1104
1224
  } else {
1105
1225
  s3 = peg$FAILED;
1106
- if (peg$silentFails === 0) { peg$fail(peg$e14); }
1226
+ if (peg$silentFails === 0) { peg$fail(peg$e29); }
1107
1227
  }
1108
1228
  if (s3 !== peg$FAILED) {
1109
1229
  s4 = peg$parsenumber();
@@ -1127,6 +1247,11 @@ function peg$parse(input, options) {
1127
1247
  peg$currPos = s0;
1128
1248
  s0 = peg$FAILED;
1129
1249
  }
1250
+ peg$silentFails--;
1251
+ if (s0 === peg$FAILED) {
1252
+ s1 = peg$FAILED;
1253
+ if (peg$silentFails === 0) { peg$fail(peg$e28); }
1254
+ }
1130
1255
 
1131
1256
  return s0;
1132
1257
  }
@@ -1139,7 +1264,7 @@ function peg$parse(input, options) {
1139
1264
  peg$currPos++;
1140
1265
  } else {
1141
1266
  s0 = peg$FAILED;
1142
- if (peg$silentFails === 0) { peg$fail(peg$e15); }
1267
+ if (peg$silentFails === 0) { peg$fail(peg$e30); }
1143
1268
  }
1144
1269
 
1145
1270
  return s0;
@@ -1148,6 +1273,7 @@ function peg$parse(input, options) {
1148
1273
  function peg$parseinteger() {
1149
1274
  var s0, s1, s2;
1150
1275
 
1276
+ peg$silentFails++;
1151
1277
  s0 = peg$currPos;
1152
1278
  s1 = peg$parsesign();
1153
1279
  if (s1 === peg$FAILED) {
@@ -1161,6 +1287,11 @@ function peg$parse(input, options) {
1161
1287
  peg$currPos = s0;
1162
1288
  s0 = peg$FAILED;
1163
1289
  }
1290
+ peg$silentFails--;
1291
+ if (s0 === peg$FAILED) {
1292
+ s1 = peg$FAILED;
1293
+ if (peg$silentFails === 0) { peg$fail(peg$e31); }
1294
+ }
1164
1295
 
1165
1296
  return s0;
1166
1297
  }
@@ -1168,13 +1299,14 @@ function peg$parse(input, options) {
1168
1299
  function peg$parselambda() {
1169
1300
  var s0, s1, s2, s3;
1170
1301
 
1302
+ peg$silentFails++;
1171
1303
  s0 = peg$currPos;
1172
1304
  if (input.charCodeAt(peg$currPos) === 61) {
1173
1305
  s1 = peg$c0;
1174
1306
  peg$currPos++;
1175
1307
  } else {
1176
1308
  s1 = peg$FAILED;
1177
- if (peg$silentFails === 0) { peg$fail(peg$e0); }
1309
+ if (peg$silentFails === 0) { peg$fail(peg$e3); }
1178
1310
  }
1179
1311
  if (s1 !== peg$FAILED) {
1180
1312
  s2 = peg$parse__();
@@ -1190,6 +1322,11 @@ function peg$parse(input, options) {
1190
1322
  peg$currPos = s0;
1191
1323
  s0 = peg$FAILED;
1192
1324
  }
1325
+ peg$silentFails--;
1326
+ if (s0 === peg$FAILED) {
1327
+ s1 = peg$FAILED;
1328
+ if (peg$silentFails === 0) { peg$fail(peg$e32); }
1329
+ }
1193
1330
 
1194
1331
  return s0;
1195
1332
  }
@@ -1197,13 +1334,14 @@ function peg$parse(input, options) {
1197
1334
  function peg$parseleadingSlashPath() {
1198
1335
  var s0, s1, s2;
1199
1336
 
1337
+ peg$silentFails++;
1200
1338
  s0 = peg$currPos;
1201
1339
  if (input.charCodeAt(peg$currPos) === 47) {
1202
1340
  s1 = peg$c10;
1203
1341
  peg$currPos++;
1204
1342
  } else {
1205
1343
  s1 = peg$FAILED;
1206
- if (peg$silentFails === 0) { peg$fail(peg$e16); }
1344
+ if (peg$silentFails === 0) { peg$fail(peg$e34); }
1207
1345
  }
1208
1346
  if (s1 !== peg$FAILED) {
1209
1347
  s2 = peg$parsepath();
@@ -1224,7 +1362,7 @@ function peg$parse(input, options) {
1224
1362
  peg$currPos++;
1225
1363
  } else {
1226
1364
  s1 = peg$FAILED;
1227
- if (peg$silentFails === 0) { peg$fail(peg$e16); }
1365
+ if (peg$silentFails === 0) { peg$fail(peg$e34); }
1228
1366
  }
1229
1367
  if (s1 !== peg$FAILED) {
1230
1368
  peg$savedPos = s0;
@@ -1232,6 +1370,11 @@ function peg$parse(input, options) {
1232
1370
  }
1233
1371
  s0 = s1;
1234
1372
  }
1373
+ peg$silentFails--;
1374
+ if (s0 === peg$FAILED) {
1375
+ s1 = peg$FAILED;
1376
+ if (peg$silentFails === 0) { peg$fail(peg$e33); }
1377
+ }
1235
1378
 
1236
1379
  return s0;
1237
1380
  }
@@ -1239,6 +1382,7 @@ function peg$parse(input, options) {
1239
1382
  function peg$parselist() {
1240
1383
  var s0, s1, s2, s3, s4, s5;
1241
1384
 
1385
+ peg$silentFails++;
1242
1386
  s0 = peg$currPos;
1243
1387
  s1 = peg$parseexpr();
1244
1388
  if (s1 !== peg$FAILED) {
@@ -1284,6 +1428,11 @@ function peg$parse(input, options) {
1284
1428
  peg$currPos = s0;
1285
1429
  s0 = peg$FAILED;
1286
1430
  }
1431
+ peg$silentFails--;
1432
+ if (s0 === peg$FAILED) {
1433
+ s1 = peg$FAILED;
1434
+ if (peg$silentFails === 0) { peg$fail(peg$e35); }
1435
+ }
1287
1436
 
1288
1437
  return s0;
1289
1438
  }
@@ -1296,7 +1445,7 @@ function peg$parse(input, options) {
1296
1445
  peg$currPos++;
1297
1446
  } else {
1298
1447
  s0 = peg$FAILED;
1299
- if (peg$silentFails === 0) { peg$fail(peg$e17); }
1448
+ if (peg$silentFails === 0) { peg$fail(peg$e36); }
1300
1449
  }
1301
1450
  if (s0 === peg$FAILED) {
1302
1451
  if (input.substr(peg$currPos, 2) === peg$c12) {
@@ -1304,7 +1453,7 @@ function peg$parse(input, options) {
1304
1453
  peg$currPos += 2;
1305
1454
  } else {
1306
1455
  s0 = peg$FAILED;
1307
- if (peg$silentFails === 0) { peg$fail(peg$e18); }
1456
+ if (peg$silentFails === 0) { peg$fail(peg$e37); }
1308
1457
  }
1309
1458
  if (s0 === peg$FAILED) {
1310
1459
  if (input.charCodeAt(peg$currPos) === 13) {
@@ -1312,7 +1461,7 @@ function peg$parse(input, options) {
1312
1461
  peg$currPos++;
1313
1462
  } else {
1314
1463
  s0 = peg$FAILED;
1315
- if (peg$silentFails === 0) { peg$fail(peg$e19); }
1464
+ if (peg$silentFails === 0) { peg$fail(peg$e38); }
1316
1465
  }
1317
1466
  }
1318
1467
  }
@@ -1321,12 +1470,18 @@ function peg$parse(input, options) {
1321
1470
  }
1322
1471
 
1323
1472
  function peg$parsenumber() {
1324
- var s0;
1473
+ var s0, s1;
1325
1474
 
1475
+ peg$silentFails++;
1326
1476
  s0 = peg$parsefloat();
1327
1477
  if (s0 === peg$FAILED) {
1328
1478
  s0 = peg$parseinteger();
1329
1479
  }
1480
+ peg$silentFails--;
1481
+ if (s0 === peg$FAILED) {
1482
+ s1 = peg$FAILED;
1483
+ if (peg$silentFails === 0) { peg$fail(peg$e39); }
1484
+ }
1330
1485
 
1331
1486
  return s0;
1332
1487
  }
@@ -1334,13 +1489,14 @@ function peg$parse(input, options) {
1334
1489
  function peg$parseobject() {
1335
1490
  var s0, s1, s2, s3, s4;
1336
1491
 
1492
+ peg$silentFails++;
1337
1493
  s0 = peg$currPos;
1338
1494
  if (input.charCodeAt(peg$currPos) === 123) {
1339
1495
  s1 = peg$c14;
1340
1496
  peg$currPos++;
1341
1497
  } else {
1342
1498
  s1 = peg$FAILED;
1343
- if (peg$silentFails === 0) { peg$fail(peg$e20); }
1499
+ if (peg$silentFails === 0) { peg$fail(peg$e41); }
1344
1500
  }
1345
1501
  if (s1 !== peg$FAILED) {
1346
1502
  s2 = peg$parse__();
@@ -1353,7 +1509,7 @@ function peg$parse(input, options) {
1353
1509
  peg$currPos++;
1354
1510
  } else {
1355
1511
  s4 = peg$FAILED;
1356
- if (peg$silentFails === 0) { peg$fail(peg$e21); }
1512
+ if (peg$silentFails === 0) { peg$fail(peg$e42); }
1357
1513
  }
1358
1514
  if (s4 !== peg$FAILED) {
1359
1515
  peg$savedPos = s0;
@@ -1366,6 +1522,11 @@ function peg$parse(input, options) {
1366
1522
  peg$currPos = s0;
1367
1523
  s0 = peg$FAILED;
1368
1524
  }
1525
+ peg$silentFails--;
1526
+ if (s0 === peg$FAILED) {
1527
+ s1 = peg$FAILED;
1528
+ if (peg$silentFails === 0) { peg$fail(peg$e40); }
1529
+ }
1369
1530
 
1370
1531
  return s0;
1371
1532
  }
@@ -1426,6 +1587,7 @@ function peg$parse(input, options) {
1426
1587
  function peg$parseobjectProperty() {
1427
1588
  var s0, s1, s2, s3, s4, s5;
1428
1589
 
1590
+ peg$silentFails++;
1429
1591
  s0 = peg$currPos;
1430
1592
  s1 = peg$parseidentifier();
1431
1593
  if (s1 !== peg$FAILED) {
@@ -1435,7 +1597,7 @@ function peg$parse(input, options) {
1435
1597
  peg$currPos++;
1436
1598
  } else {
1437
1599
  s3 = peg$FAILED;
1438
- if (peg$silentFails === 0) { peg$fail(peg$e14); }
1600
+ if (peg$silentFails === 0) { peg$fail(peg$e29); }
1439
1601
  }
1440
1602
  if (s3 !== peg$FAILED) {
1441
1603
  s4 = peg$parse__();
@@ -1454,6 +1616,11 @@ function peg$parse(input, options) {
1454
1616
  peg$currPos = s0;
1455
1617
  s0 = peg$FAILED;
1456
1618
  }
1619
+ peg$silentFails--;
1620
+ if (s0 === peg$FAILED) {
1621
+ s1 = peg$FAILED;
1622
+ if (peg$silentFails === 0) { peg$fail(peg$e43); }
1623
+ }
1457
1624
 
1458
1625
  return s0;
1459
1626
  }
@@ -1478,13 +1645,14 @@ function peg$parse(input, options) {
1478
1645
  function peg$parseparensArgs() {
1479
1646
  var s0, s1, s2, s3, s4;
1480
1647
 
1648
+ peg$silentFails++;
1481
1649
  s0 = peg$currPos;
1482
1650
  if (input.charCodeAt(peg$currPos) === 40) {
1483
1651
  s1 = peg$c7;
1484
1652
  peg$currPos++;
1485
1653
  } else {
1486
1654
  s1 = peg$FAILED;
1487
- if (peg$silentFails === 0) { peg$fail(peg$e11); }
1655
+ if (peg$silentFails === 0) { peg$fail(peg$e23); }
1488
1656
  }
1489
1657
  if (s1 !== peg$FAILED) {
1490
1658
  s2 = peg$parse__();
@@ -1497,7 +1665,7 @@ function peg$parse(input, options) {
1497
1665
  peg$currPos++;
1498
1666
  } else {
1499
1667
  s4 = peg$FAILED;
1500
- if (peg$silentFails === 0) { peg$fail(peg$e12); }
1668
+ if (peg$silentFails === 0) { peg$fail(peg$e24); }
1501
1669
  }
1502
1670
  if (s4 !== peg$FAILED) {
1503
1671
  peg$savedPos = s0;
@@ -1510,6 +1678,11 @@ function peg$parse(input, options) {
1510
1678
  peg$currPos = s0;
1511
1679
  s0 = peg$FAILED;
1512
1680
  }
1681
+ peg$silentFails--;
1682
+ if (s0 === peg$FAILED) {
1683
+ s1 = peg$FAILED;
1684
+ if (peg$silentFails === 0) { peg$fail(peg$e44); }
1685
+ }
1513
1686
 
1514
1687
  return s0;
1515
1688
  }
@@ -1524,7 +1697,7 @@ function peg$parse(input, options) {
1524
1697
  peg$currPos++;
1525
1698
  } else {
1526
1699
  s2 = peg$FAILED;
1527
- if (peg$silentFails === 0) { peg$fail(peg$e22); }
1700
+ if (peg$silentFails === 0) { peg$fail(peg$e45); }
1528
1701
  }
1529
1702
  if (s2 !== peg$FAILED) {
1530
1703
  s3 = peg$parse__();
@@ -1549,7 +1722,7 @@ function peg$parse(input, options) {
1549
1722
  peg$currPos++;
1550
1723
  } else {
1551
1724
  s0 = peg$FAILED;
1552
- if (peg$silentFails === 0) { peg$fail(peg$e23); }
1725
+ if (peg$silentFails === 0) { peg$fail(peg$e46); }
1553
1726
  }
1554
1727
 
1555
1728
  return s0;
@@ -1558,6 +1731,7 @@ function peg$parse(input, options) {
1558
1731
  function peg$parsepath() {
1559
1732
  var s0, s1, s2, s3;
1560
1733
 
1734
+ peg$silentFails++;
1561
1735
  s0 = peg$currPos;
1562
1736
  s1 = peg$parsepathKey();
1563
1737
  if (input.charCodeAt(peg$currPos) === 47) {
@@ -1565,7 +1739,7 @@ function peg$parse(input, options) {
1565
1739
  peg$currPos++;
1566
1740
  } else {
1567
1741
  s2 = peg$FAILED;
1568
- if (peg$silentFails === 0) { peg$fail(peg$e16); }
1742
+ if (peg$silentFails === 0) { peg$fail(peg$e34); }
1569
1743
  }
1570
1744
  if (s2 !== peg$FAILED) {
1571
1745
  s3 = peg$parsepath();
@@ -1587,6 +1761,11 @@ function peg$parse(input, options) {
1587
1761
  s1 = peg$f20(s1);
1588
1762
  s0 = s1;
1589
1763
  }
1764
+ peg$silentFails--;
1765
+ if (s0 === peg$FAILED) {
1766
+ s1 = peg$FAILED;
1767
+ if (peg$silentFails === 0) { peg$fail(peg$e47); }
1768
+ }
1590
1769
 
1591
1770
  return s0;
1592
1771
  }
@@ -1594,6 +1773,7 @@ function peg$parse(input, options) {
1594
1773
  function peg$parsepathKey() {
1595
1774
  var s0, s1, s2;
1596
1775
 
1776
+ peg$silentFails++;
1597
1777
  s0 = peg$currPos;
1598
1778
  s1 = [];
1599
1779
  s2 = peg$parseidentifierChar();
@@ -1604,6 +1784,9 @@ function peg$parse(input, options) {
1604
1784
  peg$savedPos = s0;
1605
1785
  s1 = peg$f21(s1);
1606
1786
  s0 = s1;
1787
+ peg$silentFails--;
1788
+ s1 = peg$FAILED;
1789
+ if (peg$silentFails === 0) { peg$fail(peg$e48); }
1607
1790
 
1608
1791
  return s0;
1609
1792
  }
@@ -1611,6 +1794,7 @@ function peg$parse(input, options) {
1611
1794
  function peg$parseprotocolCall() {
1612
1795
  var s0, s1, s2, s3, s4, s5;
1613
1796
 
1797
+ peg$silentFails++;
1614
1798
  s0 = peg$currPos;
1615
1799
  s1 = peg$parseprotocol();
1616
1800
  if (s1 !== peg$FAILED) {
@@ -1619,7 +1803,7 @@ function peg$parse(input, options) {
1619
1803
  peg$currPos++;
1620
1804
  } else {
1621
1805
  s2 = peg$FAILED;
1622
- if (peg$silentFails === 0) { peg$fail(peg$e14); }
1806
+ if (peg$silentFails === 0) { peg$fail(peg$e29); }
1623
1807
  }
1624
1808
  if (s2 !== peg$FAILED) {
1625
1809
  s3 = [];
@@ -1628,7 +1812,7 @@ function peg$parse(input, options) {
1628
1812
  peg$currPos++;
1629
1813
  } else {
1630
1814
  s4 = peg$FAILED;
1631
- if (peg$silentFails === 0) { peg$fail(peg$e16); }
1815
+ if (peg$silentFails === 0) { peg$fail(peg$e34); }
1632
1816
  }
1633
1817
  while (s4 !== peg$FAILED) {
1634
1818
  s3.push(s4);
@@ -1640,7 +1824,7 @@ function peg$parse(input, options) {
1640
1824
  peg$currPos++;
1641
1825
  } else {
1642
1826
  s4 = peg$FAILED;
1643
- if (peg$silentFails === 0) { peg$fail(peg$e16); }
1827
+ if (peg$silentFails === 0) { peg$fail(peg$e34); }
1644
1828
  }
1645
1829
  }
1646
1830
  }
@@ -1664,17 +1848,28 @@ function peg$parse(input, options) {
1664
1848
  peg$currPos = s0;
1665
1849
  s0 = peg$FAILED;
1666
1850
  }
1851
+ peg$silentFails--;
1852
+ if (s0 === peg$FAILED) {
1853
+ s1 = peg$FAILED;
1854
+ if (peg$silentFails === 0) { peg$fail(peg$e49); }
1855
+ }
1667
1856
 
1668
1857
  return s0;
1669
1858
  }
1670
1859
 
1671
1860
  function peg$parseprotocol() {
1672
- var s0;
1861
+ var s0, s1;
1673
1862
 
1863
+ peg$silentFails++;
1674
1864
  s0 = peg$parsereservedProtocol();
1675
1865
  if (s0 === peg$FAILED) {
1676
1866
  s0 = peg$parsescopeReference();
1677
1867
  }
1868
+ peg$silentFails--;
1869
+ if (s0 === peg$FAILED) {
1870
+ s1 = peg$FAILED;
1871
+ if (peg$silentFails === 0) { peg$fail(peg$e50); }
1872
+ }
1678
1873
 
1679
1874
  return s0;
1680
1875
  }
@@ -1682,13 +1877,14 @@ function peg$parse(input, options) {
1682
1877
  function peg$parsereservedProtocol() {
1683
1878
  var s0, s1;
1684
1879
 
1880
+ peg$silentFails++;
1685
1881
  s0 = peg$currPos;
1686
1882
  if (input.substr(peg$currPos, 5) === peg$c17) {
1687
1883
  s1 = peg$c17;
1688
1884
  peg$currPos += 5;
1689
1885
  } else {
1690
1886
  s1 = peg$FAILED;
1691
- if (peg$silentFails === 0) { peg$fail(peg$e24); }
1887
+ if (peg$silentFails === 0) { peg$fail(peg$e52); }
1692
1888
  }
1693
1889
  if (s1 !== peg$FAILED) {
1694
1890
  peg$savedPos = s0;
@@ -1702,7 +1898,7 @@ function peg$parse(input, options) {
1702
1898
  peg$currPos += 4;
1703
1899
  } else {
1704
1900
  s1 = peg$FAILED;
1705
- if (peg$silentFails === 0) { peg$fail(peg$e25); }
1901
+ if (peg$silentFails === 0) { peg$fail(peg$e53); }
1706
1902
  }
1707
1903
  if (s1 !== peg$FAILED) {
1708
1904
  peg$savedPos = s0;
@@ -1716,7 +1912,7 @@ function peg$parse(input, options) {
1716
1912
  peg$currPos += 7;
1717
1913
  } else {
1718
1914
  s1 = peg$FAILED;
1719
- if (peg$silentFails === 0) { peg$fail(peg$e26); }
1915
+ if (peg$silentFails === 0) { peg$fail(peg$e54); }
1720
1916
  }
1721
1917
  if (s1 !== peg$FAILED) {
1722
1918
  peg$savedPos = s0;
@@ -1730,7 +1926,7 @@ function peg$parse(input, options) {
1730
1926
  peg$currPos += 9;
1731
1927
  } else {
1732
1928
  s1 = peg$FAILED;
1733
- if (peg$silentFails === 0) { peg$fail(peg$e27); }
1929
+ if (peg$silentFails === 0) { peg$fail(peg$e55); }
1734
1930
  }
1735
1931
  if (s1 !== peg$FAILED) {
1736
1932
  peg$savedPos = s0;
@@ -1744,7 +1940,7 @@ function peg$parse(input, options) {
1744
1940
  peg$currPos += 8;
1745
1941
  } else {
1746
1942
  s1 = peg$FAILED;
1747
- if (peg$silentFails === 0) { peg$fail(peg$e28); }
1943
+ if (peg$silentFails === 0) { peg$fail(peg$e56); }
1748
1944
  }
1749
1945
  if (s1 !== peg$FAILED) {
1750
1946
  peg$savedPos = s0;
@@ -1758,7 +1954,7 @@ function peg$parse(input, options) {
1758
1954
  peg$currPos += 4;
1759
1955
  } else {
1760
1956
  s1 = peg$FAILED;
1761
- if (peg$silentFails === 0) { peg$fail(peg$e29); }
1957
+ if (peg$silentFails === 0) { peg$fail(peg$e57); }
1762
1958
  }
1763
1959
  if (s1 !== peg$FAILED) {
1764
1960
  peg$savedPos = s0;
@@ -1770,6 +1966,11 @@ function peg$parse(input, options) {
1770
1966
  }
1771
1967
  }
1772
1968
  }
1969
+ peg$silentFails--;
1970
+ if (s0 === peg$FAILED) {
1971
+ s1 = peg$FAILED;
1972
+ if (peg$silentFails === 0) { peg$fail(peg$e51); }
1973
+ }
1773
1974
 
1774
1975
  return s0;
1775
1976
  }
@@ -1777,6 +1978,7 @@ function peg$parse(input, options) {
1777
1978
  function peg$parsescopeReference() {
1778
1979
  var s0, s1;
1779
1980
 
1981
+ peg$silentFails++;
1780
1982
  s0 = peg$currPos;
1781
1983
  s1 = peg$parseidentifier();
1782
1984
  if (s1 !== peg$FAILED) {
@@ -1784,6 +1986,11 @@ function peg$parse(input, options) {
1784
1986
  s1 = peg$f29(s1);
1785
1987
  }
1786
1988
  s0 = s1;
1989
+ peg$silentFails--;
1990
+ if (s0 === peg$FAILED) {
1991
+ s1 = peg$FAILED;
1992
+ if (peg$silentFails === 0) { peg$fail(peg$e58); }
1993
+ }
1787
1994
 
1788
1995
  return s0;
1789
1996
  }
@@ -1791,13 +1998,14 @@ function peg$parse(input, options) {
1791
1998
  function peg$parsesingleQuoteString() {
1792
1999
  var s0, s1, s2, s3;
1793
2000
 
2001
+ peg$silentFails++;
1794
2002
  s0 = peg$currPos;
1795
2003
  if (input.charCodeAt(peg$currPos) === 39) {
1796
2004
  s1 = peg$c23;
1797
2005
  peg$currPos++;
1798
2006
  } else {
1799
2007
  s1 = peg$FAILED;
1800
- if (peg$silentFails === 0) { peg$fail(peg$e30); }
2008
+ if (peg$silentFails === 0) { peg$fail(peg$e60); }
1801
2009
  }
1802
2010
  if (s1 !== peg$FAILED) {
1803
2011
  s2 = [];
@@ -1811,7 +2019,7 @@ function peg$parse(input, options) {
1811
2019
  peg$currPos++;
1812
2020
  } else {
1813
2021
  s3 = peg$FAILED;
1814
- if (peg$silentFails === 0) { peg$fail(peg$e30); }
2022
+ if (peg$silentFails === 0) { peg$fail(peg$e60); }
1815
2023
  }
1816
2024
  if (s3 !== peg$FAILED) {
1817
2025
  peg$savedPos = s0;
@@ -1824,6 +2032,11 @@ function peg$parse(input, options) {
1824
2032
  peg$currPos = s0;
1825
2033
  s0 = peg$FAILED;
1826
2034
  }
2035
+ peg$silentFails--;
2036
+ if (s0 === peg$FAILED) {
2037
+ s1 = peg$FAILED;
2038
+ if (peg$silentFails === 0) { peg$fail(peg$e59); }
2039
+ }
1827
2040
 
1828
2041
  return s0;
1829
2042
  }
@@ -1839,7 +2052,7 @@ function peg$parse(input, options) {
1839
2052
  peg$currPos++;
1840
2053
  } else {
1841
2054
  s2 = peg$FAILED;
1842
- if (peg$silentFails === 0) { peg$fail(peg$e30); }
2055
+ if (peg$silentFails === 0) { peg$fail(peg$e60); }
1843
2056
  }
1844
2057
  if (s2 === peg$FAILED) {
1845
2058
  s2 = peg$parsenewLine();
@@ -1876,12 +2089,18 @@ function peg$parse(input, options) {
1876
2089
  }
1877
2090
 
1878
2091
  function peg$parsestring() {
1879
- var s0;
2092
+ var s0, s1;
1880
2093
 
2094
+ peg$silentFails++;
1881
2095
  s0 = peg$parsedoubleQuoteString();
1882
2096
  if (s0 === peg$FAILED) {
1883
2097
  s0 = peg$parsesingleQuoteString();
1884
2098
  }
2099
+ peg$silentFails--;
2100
+ if (s0 === peg$FAILED) {
2101
+ s1 = peg$FAILED;
2102
+ if (peg$silentFails === 0) { peg$fail(peg$e61); }
2103
+ }
1885
2104
 
1886
2105
  return s0;
1887
2106
  }
@@ -1897,7 +2116,7 @@ function peg$parse(input, options) {
1897
2116
  s0 = s1;
1898
2117
  peg$silentFails--;
1899
2118
  s1 = peg$FAILED;
1900
- if (peg$silentFails === 0) { peg$fail(peg$e31); }
2119
+ if (peg$silentFails === 0) { peg$fail(peg$e62); }
1901
2120
 
1902
2121
  return s0;
1903
2122
  }
@@ -1913,7 +2132,7 @@ function peg$parse(input, options) {
1913
2132
  peg$currPos += 2;
1914
2133
  } else {
1915
2134
  s2 = peg$FAILED;
1916
- if (peg$silentFails === 0) { peg$fail(peg$e32); }
2135
+ if (peg$silentFails === 0) { peg$fail(peg$e63); }
1917
2136
  }
1918
2137
  peg$silentFails--;
1919
2138
  if (s2 === peg$FAILED) {
@@ -1964,6 +2183,7 @@ function peg$parse(input, options) {
1964
2183
  function peg$parsetemplateDocumentText() {
1965
2184
  var s0, s1, s2;
1966
2185
 
2186
+ peg$silentFails++;
1967
2187
  s0 = peg$currPos;
1968
2188
  s1 = [];
1969
2189
  s2 = peg$parsetemplateDocumentChar();
@@ -1980,6 +2200,11 @@ function peg$parse(input, options) {
1980
2200
  s1 = peg$f33(s1);
1981
2201
  }
1982
2202
  s0 = s1;
2203
+ peg$silentFails--;
2204
+ if (s0 === peg$FAILED) {
2205
+ s1 = peg$FAILED;
2206
+ if (peg$silentFails === 0) { peg$fail(peg$e64); }
2207
+ }
1983
2208
 
1984
2209
  return s0;
1985
2210
  }
@@ -1987,13 +2212,14 @@ function peg$parse(input, options) {
1987
2212
  function peg$parsetemplateLiteral() {
1988
2213
  var s0, s1, s2, s3;
1989
2214
 
2215
+ peg$silentFails++;
1990
2216
  s0 = peg$currPos;
1991
2217
  if (input.charCodeAt(peg$currPos) === 96) {
1992
2218
  s1 = peg$c25;
1993
2219
  peg$currPos++;
1994
2220
  } else {
1995
2221
  s1 = peg$FAILED;
1996
- if (peg$silentFails === 0) { peg$fail(peg$e33); }
2222
+ if (peg$silentFails === 0) { peg$fail(peg$e66); }
1997
2223
  }
1998
2224
  if (s1 !== peg$FAILED) {
1999
2225
  s2 = peg$parsetemplateLiteralContents();
@@ -2002,7 +2228,7 @@ function peg$parse(input, options) {
2002
2228
  peg$currPos++;
2003
2229
  } else {
2004
2230
  s3 = peg$FAILED;
2005
- if (peg$silentFails === 0) { peg$fail(peg$e33); }
2231
+ if (peg$silentFails === 0) { peg$fail(peg$e66); }
2006
2232
  }
2007
2233
  if (s3 !== peg$FAILED) {
2008
2234
  s0 = s2;
@@ -2014,6 +2240,11 @@ function peg$parse(input, options) {
2014
2240
  peg$currPos = s0;
2015
2241
  s0 = peg$FAILED;
2016
2242
  }
2243
+ peg$silentFails--;
2244
+ if (s0 === peg$FAILED) {
2245
+ s1 = peg$FAILED;
2246
+ if (peg$silentFails === 0) { peg$fail(peg$e65); }
2247
+ }
2017
2248
 
2018
2249
  return s0;
2019
2250
  }
@@ -2029,7 +2260,7 @@ function peg$parse(input, options) {
2029
2260
  peg$currPos++;
2030
2261
  } else {
2031
2262
  s2 = peg$FAILED;
2032
- if (peg$silentFails === 0) { peg$fail(peg$e33); }
2263
+ if (peg$silentFails === 0) { peg$fail(peg$e66); }
2033
2264
  }
2034
2265
  if (s2 === peg$FAILED) {
2035
2266
  if (input.substr(peg$currPos, 2) === peg$c24) {
@@ -2037,7 +2268,7 @@ function peg$parse(input, options) {
2037
2268
  peg$currPos += 2;
2038
2269
  } else {
2039
2270
  s2 = peg$FAILED;
2040
- if (peg$silentFails === 0) { peg$fail(peg$e32); }
2271
+ if (peg$silentFails === 0) { peg$fail(peg$e63); }
2041
2272
  }
2042
2273
  }
2043
2274
  peg$silentFails--;
@@ -2112,13 +2343,14 @@ function peg$parse(input, options) {
2112
2343
  function peg$parsetemplateSubstitution() {
2113
2344
  var s0, s1, s2, s3;
2114
2345
 
2346
+ peg$silentFails++;
2115
2347
  s0 = peg$currPos;
2116
2348
  if (input.substr(peg$currPos, 2) === peg$c24) {
2117
2349
  s1 = peg$c24;
2118
2350
  peg$currPos += 2;
2119
2351
  } else {
2120
2352
  s1 = peg$FAILED;
2121
- if (peg$silentFails === 0) { peg$fail(peg$e32); }
2353
+ if (peg$silentFails === 0) { peg$fail(peg$e63); }
2122
2354
  }
2123
2355
  if (s1 !== peg$FAILED) {
2124
2356
  s2 = peg$parseexpression();
@@ -2128,7 +2360,7 @@ function peg$parse(input, options) {
2128
2360
  peg$currPos += 2;
2129
2361
  } else {
2130
2362
  s3 = peg$FAILED;
2131
- if (peg$silentFails === 0) { peg$fail(peg$e34); }
2363
+ if (peg$silentFails === 0) { peg$fail(peg$e68); }
2132
2364
  }
2133
2365
  if (s3 !== peg$FAILED) {
2134
2366
  s0 = s2;
@@ -2144,6 +2376,11 @@ function peg$parse(input, options) {
2144
2376
  peg$currPos = s0;
2145
2377
  s0 = peg$FAILED;
2146
2378
  }
2379
+ peg$silentFails--;
2380
+ if (s0 === peg$FAILED) {
2381
+ s1 = peg$FAILED;
2382
+ if (peg$silentFails === 0) { peg$fail(peg$e67); }
2383
+ }
2147
2384
 
2148
2385
  return s0;
2149
2386
  }
@@ -2158,7 +2395,7 @@ function peg$parse(input, options) {
2158
2395
  peg$currPos++;
2159
2396
  } else {
2160
2397
  s0 = peg$FAILED;
2161
- if (peg$silentFails === 0) { peg$fail(peg$e8); }
2398
+ if (peg$silentFails === 0) { peg$fail(peg$e16); }
2162
2399
  }
2163
2400
  }
2164
2401
 
@@ -2168,13 +2405,14 @@ function peg$parse(input, options) {
2168
2405
  function peg$parsetree() {
2169
2406
  var s0, s1, s2, s3, s4;
2170
2407
 
2408
+ peg$silentFails++;
2171
2409
  s0 = peg$currPos;
2172
2410
  if (input.charCodeAt(peg$currPos) === 123) {
2173
2411
  s1 = peg$c14;
2174
2412
  peg$currPos++;
2175
2413
  } else {
2176
2414
  s1 = peg$FAILED;
2177
- if (peg$silentFails === 0) { peg$fail(peg$e20); }
2415
+ if (peg$silentFails === 0) { peg$fail(peg$e41); }
2178
2416
  }
2179
2417
  if (s1 !== peg$FAILED) {
2180
2418
  s2 = peg$parse__();
@@ -2187,7 +2425,7 @@ function peg$parse(input, options) {
2187
2425
  peg$currPos++;
2188
2426
  } else {
2189
2427
  s4 = peg$FAILED;
2190
- if (peg$silentFails === 0) { peg$fail(peg$e21); }
2428
+ if (peg$silentFails === 0) { peg$fail(peg$e42); }
2191
2429
  }
2192
2430
  if (s4 !== peg$FAILED) {
2193
2431
  peg$savedPos = s0;
@@ -2200,6 +2438,11 @@ function peg$parse(input, options) {
2200
2438
  peg$currPos = s0;
2201
2439
  s0 = peg$FAILED;
2202
2440
  }
2441
+ peg$silentFails--;
2442
+ if (s0 === peg$FAILED) {
2443
+ s1 = peg$FAILED;
2444
+ if (peg$silentFails === 0) { peg$fail(peg$e69); }
2445
+ }
2203
2446
 
2204
2447
  return s0;
2205
2448
  }