@formique/semantq 1.1.0 → 1.1.2
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.
- package/LowCodeParser.js +327 -150
- package/astToFormique.js +15 -32
- package/formique-semantq.js +274 -428
- package/package.json +1 -1
package/LowCodeParser.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// @generated by Peggy 5.0.
|
|
1
|
+
// @generated by Peggy 5.1.0.
|
|
2
2
|
//
|
|
3
3
|
// https://peggyjs.org/
|
|
4
4
|
|
|
@@ -166,41 +166,43 @@ function peg$parse(input, options) {
|
|
|
166
166
|
|
|
167
167
|
const peg$c0 = "@form:";
|
|
168
168
|
const peg$c1 = ":";
|
|
169
|
-
const peg$c2 = "
|
|
170
|
-
const peg$c3 = "
|
|
171
|
-
const peg$c4 = "
|
|
172
|
-
const peg$c5 = "
|
|
169
|
+
const peg$c2 = "-";
|
|
170
|
+
const peg$c3 = "\"";
|
|
171
|
+
const peg$c4 = "true";
|
|
172
|
+
const peg$c5 = "false";
|
|
173
173
|
const peg$c6 = ",";
|
|
174
174
|
|
|
175
|
-
const peg$r0 = /^[
|
|
176
|
-
const peg$r1 = /^[
|
|
177
|
-
const peg$r2 = /^[
|
|
178
|
-
const peg$r3 = /^[
|
|
179
|
-
const peg$r4 = /^[
|
|
180
|
-
const peg$r5 = /^[
|
|
181
|
-
const peg$r6 = /^[a-zA-
|
|
182
|
-
const peg$r7 = /^[
|
|
183
|
-
const peg$r8 = /^[
|
|
184
|
-
const peg$r9 = /^[a-zA-
|
|
175
|
+
const peg$r0 = /^[\r\n]/;
|
|
176
|
+
const peg$r1 = /^[^\r\n]/;
|
|
177
|
+
const peg$r2 = /^[^"]/;
|
|
178
|
+
const peg$r3 = /^[0-9]/;
|
|
179
|
+
const peg$r4 = /^[a-zA-Z0-9_\-]/;
|
|
180
|
+
const peg$r5 = /^[!*]/;
|
|
181
|
+
const peg$r6 = /^[a-zA-Z]/;
|
|
182
|
+
const peg$r7 = /^[a-zA-Z0-9_ \-]/;
|
|
183
|
+
const peg$r8 = /^[ \t\n\r]/;
|
|
184
|
+
const peg$r9 = /^[a-zA-Z_]/;
|
|
185
|
+
const peg$r10 = /^[a-zA-Z0-9_.\/:\-?&=()@#%+![\] ]/;
|
|
185
186
|
|
|
186
187
|
const peg$e0 = peg$otherExpectation("form directive must be in this format: @form: form-name");
|
|
187
188
|
const peg$e1 = peg$literalExpectation("@form:", false);
|
|
188
189
|
const peg$e2 = peg$literalExpectation(":", false);
|
|
189
|
-
const peg$e3 = peg$classExpectation(["
|
|
190
|
-
const peg$e4 = peg$literalExpectation("
|
|
191
|
-
const peg$e5 = peg$classExpectation(["\""], true, false, false);
|
|
192
|
-
const peg$e6 = peg$literalExpectation("
|
|
193
|
-
const peg$e7 = peg$
|
|
194
|
-
const peg$e8 = peg$
|
|
195
|
-
const peg$e9 = peg$literalExpectation("
|
|
196
|
-
const peg$e10 = peg$classExpectation([["
|
|
197
|
-
const peg$e11 = peg$classExpectation(["
|
|
198
|
-
const peg$e12 = peg$
|
|
199
|
-
const peg$e13 = peg$
|
|
200
|
-
const peg$e14 = peg$classExpectation([["a", "z"], ["A", "Z"]
|
|
201
|
-
const peg$e15 = peg$classExpectation([" ", "
|
|
202
|
-
const peg$e16 = peg$classExpectation([
|
|
203
|
-
const peg$e17 = peg$classExpectation([["a", "z"], ["A", "Z"],
|
|
190
|
+
const peg$e3 = peg$classExpectation(["\r", "\n"], false, false, false);
|
|
191
|
+
const peg$e4 = peg$literalExpectation("-", false);
|
|
192
|
+
const peg$e5 = peg$classExpectation(["\r", "\n"], true, false, false);
|
|
193
|
+
const peg$e6 = peg$literalExpectation("\"", false);
|
|
194
|
+
const peg$e7 = peg$classExpectation(["\""], true, false, false);
|
|
195
|
+
const peg$e8 = peg$literalExpectation("true", false);
|
|
196
|
+
const peg$e9 = peg$literalExpectation("false", false);
|
|
197
|
+
const peg$e10 = peg$classExpectation([["0", "9"]], false, false, false);
|
|
198
|
+
const peg$e11 = peg$classExpectation([["a", "z"], ["A", "Z"], ["0", "9"], "_", "-"], false, false, false);
|
|
199
|
+
const peg$e12 = peg$classExpectation(["!", "*"], false, false, false);
|
|
200
|
+
const peg$e13 = peg$literalExpectation(",", false);
|
|
201
|
+
const peg$e14 = peg$classExpectation([["a", "z"], ["A", "Z"]], false, false, false);
|
|
202
|
+
const peg$e15 = peg$classExpectation([["a", "z"], ["A", "Z"], ["0", "9"], "_", " ", "-"], false, false, false);
|
|
203
|
+
const peg$e16 = peg$classExpectation([" ", "\t", "\n", "\r"], false, false, false);
|
|
204
|
+
const peg$e17 = peg$classExpectation([["a", "z"], ["A", "Z"], "_"], false, false, false);
|
|
205
|
+
const peg$e18 = peg$classExpectation([["a", "z"], ["A", "Z"], ["0", "9"], "_", ".", "/", ":", "-", "?", "&", "=", "(", ")", "@", "#", "%", "+", "!", "[", "]", " "], false, false, false);
|
|
204
206
|
|
|
205
207
|
function peg$f0(definition) {
|
|
206
208
|
// definition is already a filtered array from the rule below.
|
|
@@ -240,68 +242,69 @@ return createNode('FormDirective', location().start, location().end, {
|
|
|
240
242
|
value: value
|
|
241
243
|
})
|
|
242
244
|
}
|
|
243
|
-
function peg$f5() {
|
|
244
|
-
// We also trim to ensure leading/trailing spaces aren't included in the value
|
|
245
|
+
function peg$f5(contents) {
|
|
245
246
|
return createNode('StringLiteral', location().start, location().end, {
|
|
246
|
-
|
|
247
|
+
value: contents.join("").replace(/\s+/g, ' ').trim() // Normalizes multiline spaces
|
|
247
248
|
})
|
|
248
249
|
}
|
|
249
|
-
function peg$f6() {
|
|
250
|
+
function peg$f6(char) { return char }
|
|
251
|
+
function peg$f7() { return " " }
|
|
252
|
+
function peg$f8() {
|
|
250
253
|
return createNode('StringLiteral', location().start, location().end, {
|
|
251
254
|
value: text().slice(1, -1)
|
|
252
255
|
})
|
|
253
256
|
}
|
|
254
|
-
function peg$
|
|
257
|
+
function peg$f9() {
|
|
255
258
|
return createNode('BooleanLiteral', location().start, location().end, {
|
|
256
259
|
value: text() === "true"
|
|
257
260
|
})
|
|
258
261
|
}
|
|
259
|
-
function peg$
|
|
262
|
+
function peg$f10() {
|
|
260
263
|
return createNode('NumberLiteral', location().start, location().end, {
|
|
261
264
|
value: parseInt(text(), 10)
|
|
262
265
|
})
|
|
263
266
|
}
|
|
264
|
-
function peg$
|
|
267
|
+
function peg$f11(fields) {
|
|
265
268
|
return createNode('FormFields', location().start, location().end, {
|
|
266
269
|
fields: fields
|
|
267
270
|
})
|
|
268
271
|
}
|
|
269
|
-
function peg$
|
|
272
|
+
function peg$f12(name, attributes) {
|
|
270
273
|
return createNode('FormField', location().start, location().end, {
|
|
271
274
|
name: name,
|
|
272
275
|
attributes: attributes || []
|
|
273
276
|
})
|
|
274
277
|
}
|
|
275
|
-
function peg$
|
|
278
|
+
function peg$f13(markers, name, markers2) {
|
|
276
279
|
return (markers || '') + name + (markers2 || '')
|
|
277
280
|
}
|
|
278
|
-
function peg$
|
|
281
|
+
function peg$f14(name, namePart, name2, type) {
|
|
279
282
|
return (name || '') + namePart.join('') + ':' + type.join('')
|
|
280
283
|
}
|
|
281
|
-
function peg$
|
|
282
|
-
function peg$
|
|
283
|
-
function peg$
|
|
284
|
+
function peg$f15() { return text() }
|
|
285
|
+
function peg$f16() { return text() }
|
|
286
|
+
function peg$f17(attrs) {
|
|
284
287
|
return attrs.map(attr => attr[1])
|
|
285
288
|
}
|
|
286
|
-
function peg$
|
|
289
|
+
function peg$f18(key, value) { // Consumes trailing spaces/newlines
|
|
287
290
|
return createNode('FieldAttribute', location().start, location().end, {
|
|
288
291
|
key: key, // 💡 FIX: Removed .value, since AttributeKey returns a string
|
|
289
292
|
value: value
|
|
290
293
|
})
|
|
291
294
|
}
|
|
292
|
-
function peg$
|
|
295
|
+
function peg$f19(flag) {
|
|
293
296
|
return createNode('FieldAttribute', location().start, location().end, {
|
|
294
297
|
key: flag,
|
|
295
298
|
value: createNode('BooleanLiteral', location().start, location().end, { value: true })
|
|
296
299
|
})
|
|
297
300
|
}
|
|
298
|
-
function peg$
|
|
301
|
+
function peg$f20(key, values) {
|
|
299
302
|
return createNode('OptionsAttribute', location().start, location().end, {
|
|
300
303
|
key: key, // 💡 FIX: Removed .value, since AttributeKey returns a string
|
|
301
304
|
values: values
|
|
302
305
|
})
|
|
303
306
|
}
|
|
304
|
-
function peg$
|
|
307
|
+
function peg$f21(head, tail) {
|
|
305
308
|
const options = [head];
|
|
306
309
|
// The tail is an array of [whitespace, comma, whitespace, Option] tuples.
|
|
307
310
|
for (const item of tail) {
|
|
@@ -309,18 +312,18 @@ for (const item of tail) {
|
|
|
309
312
|
}
|
|
310
313
|
return options;
|
|
311
314
|
}
|
|
312
|
-
function peg$
|
|
315
|
+
function peg$f22(value) {
|
|
313
316
|
return createNode('Option', location().start, location().end, {
|
|
314
317
|
value: value.value, // Extract the value from the AttributeValue node
|
|
315
318
|
quoted: value.type === 'StringLiteral' // Check if it was a quoted string
|
|
316
319
|
})
|
|
317
320
|
}
|
|
318
|
-
function peg$
|
|
319
|
-
function peg$
|
|
320
|
-
function peg$
|
|
321
|
+
function peg$f23() { return text() }
|
|
322
|
+
function peg$f24() { return text() }
|
|
323
|
+
function peg$f25() {
|
|
321
324
|
return createNode('Identifier', location().start, location().end, { value: text() })
|
|
322
325
|
}
|
|
323
|
-
function peg$
|
|
326
|
+
function peg$f26(head, tail) { // 💡 FIX: Added space ' '
|
|
324
327
|
return createNode('StringLiteral', location().start, location().end, {
|
|
325
328
|
value: text() // Returns the entire matched text
|
|
326
329
|
})
|
|
@@ -665,32 +668,207 @@ return createNode('Identifier', location().start, location().end, { value: text(
|
|
|
665
668
|
|
|
666
669
|
s0 = peg$currPos;
|
|
667
670
|
s1 = [];
|
|
668
|
-
s2 =
|
|
669
|
-
if (peg$
|
|
671
|
+
s2 = peg$parseUnquotedLine();
|
|
672
|
+
if (s2 !== peg$FAILED) {
|
|
673
|
+
while (s2 !== peg$FAILED) {
|
|
674
|
+
s1.push(s2);
|
|
675
|
+
s2 = peg$parseUnquotedLine();
|
|
676
|
+
}
|
|
677
|
+
} else {
|
|
678
|
+
s1 = peg$FAILED;
|
|
679
|
+
}
|
|
680
|
+
if (s1 !== peg$FAILED) {
|
|
681
|
+
peg$savedPos = s0;
|
|
682
|
+
s1 = peg$f5(s1);
|
|
683
|
+
}
|
|
684
|
+
s0 = s1;
|
|
685
|
+
|
|
686
|
+
return s0;
|
|
687
|
+
}
|
|
688
|
+
|
|
689
|
+
function peg$parseUnquotedLine() {
|
|
690
|
+
let s0, s1, s2, s3, s4, s5, s6, s7;
|
|
691
|
+
|
|
692
|
+
s0 = peg$currPos;
|
|
693
|
+
s1 = peg$currPos;
|
|
694
|
+
peg$silentFails++;
|
|
695
|
+
s2 = peg$currPos;
|
|
696
|
+
s3 = [];
|
|
697
|
+
s4 = input.charAt(peg$currPos);
|
|
698
|
+
if (peg$r0.test(s4)) {
|
|
670
699
|
peg$currPos++;
|
|
671
700
|
} else {
|
|
672
|
-
|
|
701
|
+
s4 = peg$FAILED;
|
|
673
702
|
if (peg$silentFails === 0) { peg$fail(peg$e3); }
|
|
674
703
|
}
|
|
675
|
-
if (
|
|
676
|
-
while (
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
if (peg$r0.test(
|
|
704
|
+
if (s4 !== peg$FAILED) {
|
|
705
|
+
while (s4 !== peg$FAILED) {
|
|
706
|
+
s3.push(s4);
|
|
707
|
+
s4 = input.charAt(peg$currPos);
|
|
708
|
+
if (peg$r0.test(s4)) {
|
|
680
709
|
peg$currPos++;
|
|
681
710
|
} else {
|
|
682
|
-
|
|
711
|
+
s4 = peg$FAILED;
|
|
683
712
|
if (peg$silentFails === 0) { peg$fail(peg$e3); }
|
|
684
713
|
}
|
|
685
714
|
}
|
|
686
715
|
} else {
|
|
716
|
+
s3 = peg$FAILED;
|
|
717
|
+
}
|
|
718
|
+
if (s3 !== peg$FAILED) {
|
|
719
|
+
s4 = peg$parse_();
|
|
720
|
+
if (input.charCodeAt(peg$currPos) === 45) {
|
|
721
|
+
s5 = peg$c2;
|
|
722
|
+
peg$currPos++;
|
|
723
|
+
} else {
|
|
724
|
+
s5 = peg$FAILED;
|
|
725
|
+
if (peg$silentFails === 0) { peg$fail(peg$e4); }
|
|
726
|
+
}
|
|
727
|
+
if (s5 === peg$FAILED) {
|
|
728
|
+
s5 = peg$currPos;
|
|
729
|
+
s6 = peg$parseIdentifier();
|
|
730
|
+
if (s6 !== peg$FAILED) {
|
|
731
|
+
if (input.charCodeAt(peg$currPos) === 58) {
|
|
732
|
+
s7 = peg$c1;
|
|
733
|
+
peg$currPos++;
|
|
734
|
+
} else {
|
|
735
|
+
s7 = peg$FAILED;
|
|
736
|
+
if (peg$silentFails === 0) { peg$fail(peg$e2); }
|
|
737
|
+
}
|
|
738
|
+
if (s7 !== peg$FAILED) {
|
|
739
|
+
s6 = [s6, s7];
|
|
740
|
+
s5 = s6;
|
|
741
|
+
} else {
|
|
742
|
+
peg$currPos = s5;
|
|
743
|
+
s5 = peg$FAILED;
|
|
744
|
+
}
|
|
745
|
+
} else {
|
|
746
|
+
peg$currPos = s5;
|
|
747
|
+
s5 = peg$FAILED;
|
|
748
|
+
}
|
|
749
|
+
}
|
|
750
|
+
if (s5 !== peg$FAILED) {
|
|
751
|
+
s3 = [s3, s4, s5];
|
|
752
|
+
s2 = s3;
|
|
753
|
+
} else {
|
|
754
|
+
peg$currPos = s2;
|
|
755
|
+
s2 = peg$FAILED;
|
|
756
|
+
}
|
|
757
|
+
} else {
|
|
758
|
+
peg$currPos = s2;
|
|
759
|
+
s2 = peg$FAILED;
|
|
760
|
+
}
|
|
761
|
+
peg$silentFails--;
|
|
762
|
+
if (s2 === peg$FAILED) {
|
|
763
|
+
s1 = undefined;
|
|
764
|
+
} else {
|
|
765
|
+
peg$currPos = s1;
|
|
687
766
|
s1 = peg$FAILED;
|
|
688
767
|
}
|
|
689
768
|
if (s1 !== peg$FAILED) {
|
|
690
|
-
|
|
691
|
-
|
|
769
|
+
s2 = input.charAt(peg$currPos);
|
|
770
|
+
if (peg$r1.test(s2)) {
|
|
771
|
+
peg$currPos++;
|
|
772
|
+
} else {
|
|
773
|
+
s2 = peg$FAILED;
|
|
774
|
+
if (peg$silentFails === 0) { peg$fail(peg$e5); }
|
|
775
|
+
}
|
|
776
|
+
if (s2 !== peg$FAILED) {
|
|
777
|
+
peg$savedPos = s0;
|
|
778
|
+
s0 = peg$f6(s2);
|
|
779
|
+
} else {
|
|
780
|
+
peg$currPos = s0;
|
|
781
|
+
s0 = peg$FAILED;
|
|
782
|
+
}
|
|
783
|
+
} else {
|
|
784
|
+
peg$currPos = s0;
|
|
785
|
+
s0 = peg$FAILED;
|
|
786
|
+
}
|
|
787
|
+
if (s0 === peg$FAILED) {
|
|
788
|
+
s0 = peg$currPos;
|
|
789
|
+
s1 = [];
|
|
790
|
+
s2 = input.charAt(peg$currPos);
|
|
791
|
+
if (peg$r0.test(s2)) {
|
|
792
|
+
peg$currPos++;
|
|
793
|
+
} else {
|
|
794
|
+
s2 = peg$FAILED;
|
|
795
|
+
if (peg$silentFails === 0) { peg$fail(peg$e3); }
|
|
796
|
+
}
|
|
797
|
+
if (s2 !== peg$FAILED) {
|
|
798
|
+
while (s2 !== peg$FAILED) {
|
|
799
|
+
s1.push(s2);
|
|
800
|
+
s2 = input.charAt(peg$currPos);
|
|
801
|
+
if (peg$r0.test(s2)) {
|
|
802
|
+
peg$currPos++;
|
|
803
|
+
} else {
|
|
804
|
+
s2 = peg$FAILED;
|
|
805
|
+
if (peg$silentFails === 0) { peg$fail(peg$e3); }
|
|
806
|
+
}
|
|
807
|
+
}
|
|
808
|
+
} else {
|
|
809
|
+
s1 = peg$FAILED;
|
|
810
|
+
}
|
|
811
|
+
if (s1 !== peg$FAILED) {
|
|
812
|
+
s2 = peg$currPos;
|
|
813
|
+
peg$silentFails++;
|
|
814
|
+
s3 = peg$currPos;
|
|
815
|
+
s4 = peg$parse_();
|
|
816
|
+
if (input.charCodeAt(peg$currPos) === 45) {
|
|
817
|
+
s5 = peg$c2;
|
|
818
|
+
peg$currPos++;
|
|
819
|
+
} else {
|
|
820
|
+
s5 = peg$FAILED;
|
|
821
|
+
if (peg$silentFails === 0) { peg$fail(peg$e4); }
|
|
822
|
+
}
|
|
823
|
+
if (s5 === peg$FAILED) {
|
|
824
|
+
s5 = peg$currPos;
|
|
825
|
+
s6 = peg$parseIdentifier();
|
|
826
|
+
if (s6 !== peg$FAILED) {
|
|
827
|
+
if (input.charCodeAt(peg$currPos) === 58) {
|
|
828
|
+
s7 = peg$c1;
|
|
829
|
+
peg$currPos++;
|
|
830
|
+
} else {
|
|
831
|
+
s7 = peg$FAILED;
|
|
832
|
+
if (peg$silentFails === 0) { peg$fail(peg$e2); }
|
|
833
|
+
}
|
|
834
|
+
if (s7 !== peg$FAILED) {
|
|
835
|
+
s6 = [s6, s7];
|
|
836
|
+
s5 = s6;
|
|
837
|
+
} else {
|
|
838
|
+
peg$currPos = s5;
|
|
839
|
+
s5 = peg$FAILED;
|
|
840
|
+
}
|
|
841
|
+
} else {
|
|
842
|
+
peg$currPos = s5;
|
|
843
|
+
s5 = peg$FAILED;
|
|
844
|
+
}
|
|
845
|
+
}
|
|
846
|
+
if (s5 !== peg$FAILED) {
|
|
847
|
+
s4 = [s4, s5];
|
|
848
|
+
s3 = s4;
|
|
849
|
+
} else {
|
|
850
|
+
peg$currPos = s3;
|
|
851
|
+
s3 = peg$FAILED;
|
|
852
|
+
}
|
|
853
|
+
peg$silentFails--;
|
|
854
|
+
if (s3 === peg$FAILED) {
|
|
855
|
+
s2 = undefined;
|
|
856
|
+
} else {
|
|
857
|
+
peg$currPos = s2;
|
|
858
|
+
s2 = peg$FAILED;
|
|
859
|
+
}
|
|
860
|
+
if (s2 !== peg$FAILED) {
|
|
861
|
+
peg$savedPos = s0;
|
|
862
|
+
s0 = peg$f7();
|
|
863
|
+
} else {
|
|
864
|
+
peg$currPos = s0;
|
|
865
|
+
s0 = peg$FAILED;
|
|
866
|
+
}
|
|
867
|
+
} else {
|
|
868
|
+
peg$currPos = s0;
|
|
869
|
+
s0 = peg$FAILED;
|
|
870
|
+
}
|
|
692
871
|
}
|
|
693
|
-
s0 = s1;
|
|
694
872
|
|
|
695
873
|
return s0;
|
|
696
874
|
}
|
|
@@ -700,41 +878,41 @@ return createNode('Identifier', location().start, location().end, { value: text(
|
|
|
700
878
|
|
|
701
879
|
s0 = peg$currPos;
|
|
702
880
|
if (input.charCodeAt(peg$currPos) === 34) {
|
|
703
|
-
s1 = peg$
|
|
881
|
+
s1 = peg$c3;
|
|
704
882
|
peg$currPos++;
|
|
705
883
|
} else {
|
|
706
884
|
s1 = peg$FAILED;
|
|
707
|
-
if (peg$silentFails === 0) { peg$fail(peg$
|
|
885
|
+
if (peg$silentFails === 0) { peg$fail(peg$e6); }
|
|
708
886
|
}
|
|
709
887
|
if (s1 !== peg$FAILED) {
|
|
710
888
|
s2 = [];
|
|
711
889
|
s3 = input.charAt(peg$currPos);
|
|
712
|
-
if (peg$
|
|
890
|
+
if (peg$r2.test(s3)) {
|
|
713
891
|
peg$currPos++;
|
|
714
892
|
} else {
|
|
715
893
|
s3 = peg$FAILED;
|
|
716
|
-
if (peg$silentFails === 0) { peg$fail(peg$
|
|
894
|
+
if (peg$silentFails === 0) { peg$fail(peg$e7); }
|
|
717
895
|
}
|
|
718
896
|
while (s3 !== peg$FAILED) {
|
|
719
897
|
s2.push(s3);
|
|
720
898
|
s3 = input.charAt(peg$currPos);
|
|
721
|
-
if (peg$
|
|
899
|
+
if (peg$r2.test(s3)) {
|
|
722
900
|
peg$currPos++;
|
|
723
901
|
} else {
|
|
724
902
|
s3 = peg$FAILED;
|
|
725
|
-
if (peg$silentFails === 0) { peg$fail(peg$
|
|
903
|
+
if (peg$silentFails === 0) { peg$fail(peg$e7); }
|
|
726
904
|
}
|
|
727
905
|
}
|
|
728
906
|
if (input.charCodeAt(peg$currPos) === 34) {
|
|
729
|
-
s3 = peg$
|
|
907
|
+
s3 = peg$c3;
|
|
730
908
|
peg$currPos++;
|
|
731
909
|
} else {
|
|
732
910
|
s3 = peg$FAILED;
|
|
733
|
-
if (peg$silentFails === 0) { peg$fail(peg$
|
|
911
|
+
if (peg$silentFails === 0) { peg$fail(peg$e6); }
|
|
734
912
|
}
|
|
735
913
|
if (s3 !== peg$FAILED) {
|
|
736
914
|
peg$savedPos = s0;
|
|
737
|
-
s0 = peg$
|
|
915
|
+
s0 = peg$f8();
|
|
738
916
|
} else {
|
|
739
917
|
peg$currPos = s0;
|
|
740
918
|
s0 = peg$FAILED;
|
|
@@ -751,25 +929,25 @@ return createNode('Identifier', location().start, location().end, { value: text(
|
|
|
751
929
|
let s0, s1;
|
|
752
930
|
|
|
753
931
|
s0 = peg$currPos;
|
|
754
|
-
if (input.substr(peg$currPos, 4) === peg$
|
|
755
|
-
s1 = peg$
|
|
932
|
+
if (input.substr(peg$currPos, 4) === peg$c4) {
|
|
933
|
+
s1 = peg$c4;
|
|
756
934
|
peg$currPos += 4;
|
|
757
935
|
} else {
|
|
758
936
|
s1 = peg$FAILED;
|
|
759
|
-
if (peg$silentFails === 0) { peg$fail(peg$
|
|
937
|
+
if (peg$silentFails === 0) { peg$fail(peg$e8); }
|
|
760
938
|
}
|
|
761
939
|
if (s1 === peg$FAILED) {
|
|
762
|
-
if (input.substr(peg$currPos, 5) === peg$
|
|
763
|
-
s1 = peg$
|
|
940
|
+
if (input.substr(peg$currPos, 5) === peg$c5) {
|
|
941
|
+
s1 = peg$c5;
|
|
764
942
|
peg$currPos += 5;
|
|
765
943
|
} else {
|
|
766
944
|
s1 = peg$FAILED;
|
|
767
|
-
if (peg$silentFails === 0) { peg$fail(peg$
|
|
945
|
+
if (peg$silentFails === 0) { peg$fail(peg$e9); }
|
|
768
946
|
}
|
|
769
947
|
}
|
|
770
948
|
if (s1 !== peg$FAILED) {
|
|
771
949
|
peg$savedPos = s0;
|
|
772
|
-
s1 = peg$
|
|
950
|
+
s1 = peg$f9();
|
|
773
951
|
}
|
|
774
952
|
s0 = s1;
|
|
775
953
|
|
|
@@ -782,21 +960,21 @@ return createNode('Identifier', location().start, location().end, { value: text(
|
|
|
782
960
|
s0 = peg$currPos;
|
|
783
961
|
s1 = [];
|
|
784
962
|
s2 = input.charAt(peg$currPos);
|
|
785
|
-
if (peg$
|
|
963
|
+
if (peg$r3.test(s2)) {
|
|
786
964
|
peg$currPos++;
|
|
787
965
|
} else {
|
|
788
966
|
s2 = peg$FAILED;
|
|
789
|
-
if (peg$silentFails === 0) { peg$fail(peg$
|
|
967
|
+
if (peg$silentFails === 0) { peg$fail(peg$e10); }
|
|
790
968
|
}
|
|
791
969
|
if (s2 !== peg$FAILED) {
|
|
792
970
|
while (s2 !== peg$FAILED) {
|
|
793
971
|
s1.push(s2);
|
|
794
972
|
s2 = input.charAt(peg$currPos);
|
|
795
|
-
if (peg$
|
|
973
|
+
if (peg$r3.test(s2)) {
|
|
796
974
|
peg$currPos++;
|
|
797
975
|
} else {
|
|
798
976
|
s2 = peg$FAILED;
|
|
799
|
-
if (peg$silentFails === 0) { peg$fail(peg$
|
|
977
|
+
if (peg$silentFails === 0) { peg$fail(peg$e10); }
|
|
800
978
|
}
|
|
801
979
|
}
|
|
802
980
|
} else {
|
|
@@ -804,7 +982,7 @@ return createNode('Identifier', location().start, location().end, { value: text(
|
|
|
804
982
|
}
|
|
805
983
|
if (s1 !== peg$FAILED) {
|
|
806
984
|
peg$savedPos = s0;
|
|
807
|
-
s1 = peg$
|
|
985
|
+
s1 = peg$f10();
|
|
808
986
|
}
|
|
809
987
|
s0 = s1;
|
|
810
988
|
|
|
@@ -828,7 +1006,7 @@ return createNode('Identifier', location().start, location().end, { value: text(
|
|
|
828
1006
|
}
|
|
829
1007
|
if (s2 !== peg$FAILED) {
|
|
830
1008
|
peg$savedPos = s0;
|
|
831
|
-
s0 = peg$
|
|
1009
|
+
s0 = peg$f11(s2);
|
|
832
1010
|
} else {
|
|
833
1011
|
peg$currPos = s0;
|
|
834
1012
|
s0 = peg$FAILED;
|
|
@@ -842,11 +1020,11 @@ return createNode('Identifier', location().start, location().end, { value: text(
|
|
|
842
1020
|
|
|
843
1021
|
s0 = peg$currPos;
|
|
844
1022
|
if (input.charCodeAt(peg$currPos) === 45) {
|
|
845
|
-
s1 = peg$
|
|
1023
|
+
s1 = peg$c2;
|
|
846
1024
|
peg$currPos++;
|
|
847
1025
|
} else {
|
|
848
1026
|
s1 = peg$FAILED;
|
|
849
|
-
if (peg$silentFails === 0) { peg$fail(peg$
|
|
1027
|
+
if (peg$silentFails === 0) { peg$fail(peg$e4); }
|
|
850
1028
|
}
|
|
851
1029
|
if (s1 !== peg$FAILED) {
|
|
852
1030
|
s2 = peg$parse_();
|
|
@@ -855,7 +1033,7 @@ return createNode('Identifier', location().start, location().end, { value: text(
|
|
|
855
1033
|
s4 = peg$parseFieldAttributes();
|
|
856
1034
|
s5 = peg$parse_();
|
|
857
1035
|
peg$savedPos = s0;
|
|
858
|
-
s0 = peg$
|
|
1036
|
+
s0 = peg$f12(s3, s4);
|
|
859
1037
|
} else {
|
|
860
1038
|
peg$currPos = s0;
|
|
861
1039
|
s0 = peg$FAILED;
|
|
@@ -887,7 +1065,7 @@ return createNode('Identifier', location().start, location().end, { value: text(
|
|
|
887
1065
|
}
|
|
888
1066
|
s7 = peg$parse_();
|
|
889
1067
|
peg$savedPos = s0;
|
|
890
|
-
s0 = peg$
|
|
1068
|
+
s0 = peg$f13(s2, s4, s6);
|
|
891
1069
|
} else {
|
|
892
1070
|
peg$currPos = s0;
|
|
893
1071
|
s0 = peg$FAILED;
|
|
@@ -917,21 +1095,21 @@ return createNode('Identifier', location().start, location().end, { value: text(
|
|
|
917
1095
|
}
|
|
918
1096
|
s2 = [];
|
|
919
1097
|
s3 = input.charAt(peg$currPos);
|
|
920
|
-
if (peg$
|
|
1098
|
+
if (peg$r4.test(s3)) {
|
|
921
1099
|
peg$currPos++;
|
|
922
1100
|
} else {
|
|
923
1101
|
s3 = peg$FAILED;
|
|
924
|
-
if (peg$silentFails === 0) { peg$fail(peg$
|
|
1102
|
+
if (peg$silentFails === 0) { peg$fail(peg$e11); }
|
|
925
1103
|
}
|
|
926
1104
|
if (s3 !== peg$FAILED) {
|
|
927
1105
|
while (s3 !== peg$FAILED) {
|
|
928
1106
|
s2.push(s3);
|
|
929
1107
|
s3 = input.charAt(peg$currPos);
|
|
930
|
-
if (peg$
|
|
1108
|
+
if (peg$r4.test(s3)) {
|
|
931
1109
|
peg$currPos++;
|
|
932
1110
|
} else {
|
|
933
1111
|
s3 = peg$FAILED;
|
|
934
|
-
if (peg$silentFails === 0) { peg$fail(peg$
|
|
1112
|
+
if (peg$silentFails === 0) { peg$fail(peg$e11); }
|
|
935
1113
|
}
|
|
936
1114
|
}
|
|
937
1115
|
} else {
|
|
@@ -952,21 +1130,21 @@ return createNode('Identifier', location().start, location().end, { value: text(
|
|
|
952
1130
|
if (s4 !== peg$FAILED) {
|
|
953
1131
|
s5 = [];
|
|
954
1132
|
s6 = input.charAt(peg$currPos);
|
|
955
|
-
if (peg$
|
|
1133
|
+
if (peg$r4.test(s6)) {
|
|
956
1134
|
peg$currPos++;
|
|
957
1135
|
} else {
|
|
958
1136
|
s6 = peg$FAILED;
|
|
959
|
-
if (peg$silentFails === 0) { peg$fail(peg$
|
|
1137
|
+
if (peg$silentFails === 0) { peg$fail(peg$e11); }
|
|
960
1138
|
}
|
|
961
1139
|
if (s6 !== peg$FAILED) {
|
|
962
1140
|
while (s6 !== peg$FAILED) {
|
|
963
1141
|
s5.push(s6);
|
|
964
1142
|
s6 = input.charAt(peg$currPos);
|
|
965
|
-
if (peg$
|
|
1143
|
+
if (peg$r4.test(s6)) {
|
|
966
1144
|
peg$currPos++;
|
|
967
1145
|
} else {
|
|
968
1146
|
s6 = peg$FAILED;
|
|
969
|
-
if (peg$silentFails === 0) { peg$fail(peg$
|
|
1147
|
+
if (peg$silentFails === 0) { peg$fail(peg$e11); }
|
|
970
1148
|
}
|
|
971
1149
|
}
|
|
972
1150
|
} else {
|
|
@@ -974,7 +1152,7 @@ return createNode('Identifier', location().start, location().end, { value: text(
|
|
|
974
1152
|
}
|
|
975
1153
|
if (s5 !== peg$FAILED) {
|
|
976
1154
|
peg$savedPos = s0;
|
|
977
|
-
s0 = peg$
|
|
1155
|
+
s0 = peg$f14(s1, s2, s3, s5);
|
|
978
1156
|
} else {
|
|
979
1157
|
peg$currPos = s0;
|
|
980
1158
|
s0 = peg$FAILED;
|
|
@@ -997,21 +1175,21 @@ return createNode('Identifier', location().start, location().end, { value: text(
|
|
|
997
1175
|
s0 = peg$currPos;
|
|
998
1176
|
s1 = [];
|
|
999
1177
|
s2 = input.charAt(peg$currPos);
|
|
1000
|
-
if (peg$
|
|
1178
|
+
if (peg$r4.test(s2)) {
|
|
1001
1179
|
peg$currPos++;
|
|
1002
1180
|
} else {
|
|
1003
1181
|
s2 = peg$FAILED;
|
|
1004
|
-
if (peg$silentFails === 0) { peg$fail(peg$
|
|
1182
|
+
if (peg$silentFails === 0) { peg$fail(peg$e11); }
|
|
1005
1183
|
}
|
|
1006
1184
|
if (s2 !== peg$FAILED) {
|
|
1007
1185
|
while (s2 !== peg$FAILED) {
|
|
1008
1186
|
s1.push(s2);
|
|
1009
1187
|
s2 = input.charAt(peg$currPos);
|
|
1010
|
-
if (peg$
|
|
1188
|
+
if (peg$r4.test(s2)) {
|
|
1011
1189
|
peg$currPos++;
|
|
1012
1190
|
} else {
|
|
1013
1191
|
s2 = peg$FAILED;
|
|
1014
|
-
if (peg$silentFails === 0) { peg$fail(peg$
|
|
1192
|
+
if (peg$silentFails === 0) { peg$fail(peg$e11); }
|
|
1015
1193
|
}
|
|
1016
1194
|
}
|
|
1017
1195
|
} else {
|
|
@@ -1019,7 +1197,7 @@ return createNode('Identifier', location().start, location().end, { value: text(
|
|
|
1019
1197
|
}
|
|
1020
1198
|
if (s1 !== peg$FAILED) {
|
|
1021
1199
|
peg$savedPos = s0;
|
|
1022
|
-
s1 = peg$
|
|
1200
|
+
s1 = peg$f15();
|
|
1023
1201
|
}
|
|
1024
1202
|
s0 = s1;
|
|
1025
1203
|
|
|
@@ -1032,21 +1210,21 @@ return createNode('Identifier', location().start, location().end, { value: text(
|
|
|
1032
1210
|
s0 = peg$currPos;
|
|
1033
1211
|
s1 = [];
|
|
1034
1212
|
s2 = input.charAt(peg$currPos);
|
|
1035
|
-
if (peg$
|
|
1213
|
+
if (peg$r5.test(s2)) {
|
|
1036
1214
|
peg$currPos++;
|
|
1037
1215
|
} else {
|
|
1038
1216
|
s2 = peg$FAILED;
|
|
1039
|
-
if (peg$silentFails === 0) { peg$fail(peg$
|
|
1217
|
+
if (peg$silentFails === 0) { peg$fail(peg$e12); }
|
|
1040
1218
|
}
|
|
1041
1219
|
if (s2 !== peg$FAILED) {
|
|
1042
1220
|
while (s2 !== peg$FAILED) {
|
|
1043
1221
|
s1.push(s2);
|
|
1044
1222
|
s2 = input.charAt(peg$currPos);
|
|
1045
|
-
if (peg$
|
|
1223
|
+
if (peg$r5.test(s2)) {
|
|
1046
1224
|
peg$currPos++;
|
|
1047
1225
|
} else {
|
|
1048
1226
|
s2 = peg$FAILED;
|
|
1049
|
-
if (peg$silentFails === 0) { peg$fail(peg$
|
|
1227
|
+
if (peg$silentFails === 0) { peg$fail(peg$e12); }
|
|
1050
1228
|
}
|
|
1051
1229
|
}
|
|
1052
1230
|
} else {
|
|
@@ -1054,7 +1232,7 @@ return createNode('Identifier', location().start, location().end, { value: text(
|
|
|
1054
1232
|
}
|
|
1055
1233
|
if (s1 !== peg$FAILED) {
|
|
1056
1234
|
peg$savedPos = s0;
|
|
1057
|
-
s1 = peg$
|
|
1235
|
+
s1 = peg$f16();
|
|
1058
1236
|
}
|
|
1059
1237
|
s0 = s1;
|
|
1060
1238
|
|
|
@@ -1090,7 +1268,7 @@ return createNode('Identifier', location().start, location().end, { value: text(
|
|
|
1090
1268
|
}
|
|
1091
1269
|
}
|
|
1092
1270
|
peg$savedPos = s0;
|
|
1093
|
-
s1 = peg$
|
|
1271
|
+
s1 = peg$f17(s1);
|
|
1094
1272
|
s0 = s1;
|
|
1095
1273
|
|
|
1096
1274
|
return s0;
|
|
@@ -1126,7 +1304,7 @@ return createNode('Identifier', location().start, location().end, { value: text(
|
|
|
1126
1304
|
if (s4 !== peg$FAILED) {
|
|
1127
1305
|
s5 = peg$parse_();
|
|
1128
1306
|
peg$savedPos = s0;
|
|
1129
|
-
s0 = peg$
|
|
1307
|
+
s0 = peg$f18(s1, s4);
|
|
1130
1308
|
} else {
|
|
1131
1309
|
peg$currPos = s0;
|
|
1132
1310
|
s0 = peg$FAILED;
|
|
@@ -1145,7 +1323,7 @@ return createNode('Identifier', location().start, location().end, { value: text(
|
|
|
1145
1323
|
if (s1 !== peg$FAILED) {
|
|
1146
1324
|
s2 = peg$parse_();
|
|
1147
1325
|
peg$savedPos = s0;
|
|
1148
|
-
s0 = peg$
|
|
1326
|
+
s0 = peg$f19(s1);
|
|
1149
1327
|
} else {
|
|
1150
1328
|
peg$currPos = s0;
|
|
1151
1329
|
s0 = peg$FAILED;
|
|
@@ -1173,7 +1351,7 @@ return createNode('Identifier', location().start, location().end, { value: text(
|
|
|
1173
1351
|
s4 = peg$parseOptionList();
|
|
1174
1352
|
if (s4 !== peg$FAILED) {
|
|
1175
1353
|
peg$savedPos = s0;
|
|
1176
|
-
s0 = peg$
|
|
1354
|
+
s0 = peg$f20(s1, s4);
|
|
1177
1355
|
} else {
|
|
1178
1356
|
peg$currPos = s0;
|
|
1179
1357
|
s0 = peg$FAILED;
|
|
@@ -1204,7 +1382,7 @@ return createNode('Identifier', location().start, location().end, { value: text(
|
|
|
1204
1382
|
peg$currPos++;
|
|
1205
1383
|
} else {
|
|
1206
1384
|
s5 = peg$FAILED;
|
|
1207
|
-
if (peg$silentFails === 0) { peg$fail(peg$
|
|
1385
|
+
if (peg$silentFails === 0) { peg$fail(peg$e13); }
|
|
1208
1386
|
}
|
|
1209
1387
|
if (s5 !== peg$FAILED) {
|
|
1210
1388
|
s6 = peg$parse_();
|
|
@@ -1230,7 +1408,7 @@ return createNode('Identifier', location().start, location().end, { value: text(
|
|
|
1230
1408
|
peg$currPos++;
|
|
1231
1409
|
} else {
|
|
1232
1410
|
s5 = peg$FAILED;
|
|
1233
|
-
if (peg$silentFails === 0) { peg$fail(peg$
|
|
1411
|
+
if (peg$silentFails === 0) { peg$fail(peg$e13); }
|
|
1234
1412
|
}
|
|
1235
1413
|
if (s5 !== peg$FAILED) {
|
|
1236
1414
|
s6 = peg$parse_();
|
|
@@ -1252,7 +1430,7 @@ return createNode('Identifier', location().start, location().end, { value: text(
|
|
|
1252
1430
|
}
|
|
1253
1431
|
if (s2 !== peg$FAILED) {
|
|
1254
1432
|
peg$savedPos = s0;
|
|
1255
|
-
s0 = peg$
|
|
1433
|
+
s0 = peg$f21(s1, s2);
|
|
1256
1434
|
} else {
|
|
1257
1435
|
peg$currPos = s0;
|
|
1258
1436
|
s0 = peg$FAILED;
|
|
@@ -1286,7 +1464,7 @@ return createNode('Identifier', location().start, location().end, { value: text(
|
|
|
1286
1464
|
s1 = peg$parseAttributeValue();
|
|
1287
1465
|
if (s1 !== peg$FAILED) {
|
|
1288
1466
|
peg$savedPos = s0;
|
|
1289
|
-
s1 = peg$
|
|
1467
|
+
s1 = peg$f22(s1);
|
|
1290
1468
|
}
|
|
1291
1469
|
s0 = s1;
|
|
1292
1470
|
|
|
@@ -1298,33 +1476,33 @@ return createNode('Identifier', location().start, location().end, { value: text(
|
|
|
1298
1476
|
|
|
1299
1477
|
s0 = peg$currPos;
|
|
1300
1478
|
s1 = input.charAt(peg$currPos);
|
|
1301
|
-
if (peg$
|
|
1479
|
+
if (peg$r6.test(s1)) {
|
|
1302
1480
|
peg$currPos++;
|
|
1303
1481
|
} else {
|
|
1304
1482
|
s1 = peg$FAILED;
|
|
1305
|
-
if (peg$silentFails === 0) { peg$fail(peg$
|
|
1483
|
+
if (peg$silentFails === 0) { peg$fail(peg$e14); }
|
|
1306
1484
|
}
|
|
1307
1485
|
if (s1 !== peg$FAILED) {
|
|
1308
1486
|
s2 = [];
|
|
1309
1487
|
s3 = input.charAt(peg$currPos);
|
|
1310
|
-
if (peg$
|
|
1488
|
+
if (peg$r7.test(s3)) {
|
|
1311
1489
|
peg$currPos++;
|
|
1312
1490
|
} else {
|
|
1313
1491
|
s3 = peg$FAILED;
|
|
1314
|
-
if (peg$silentFails === 0) { peg$fail(peg$
|
|
1492
|
+
if (peg$silentFails === 0) { peg$fail(peg$e15); }
|
|
1315
1493
|
}
|
|
1316
1494
|
while (s3 !== peg$FAILED) {
|
|
1317
1495
|
s2.push(s3);
|
|
1318
1496
|
s3 = input.charAt(peg$currPos);
|
|
1319
|
-
if (peg$
|
|
1497
|
+
if (peg$r7.test(s3)) {
|
|
1320
1498
|
peg$currPos++;
|
|
1321
1499
|
} else {
|
|
1322
1500
|
s3 = peg$FAILED;
|
|
1323
|
-
if (peg$silentFails === 0) { peg$fail(peg$
|
|
1501
|
+
if (peg$silentFails === 0) { peg$fail(peg$e15); }
|
|
1324
1502
|
}
|
|
1325
1503
|
}
|
|
1326
1504
|
peg$savedPos = s0;
|
|
1327
|
-
s0 = peg$
|
|
1505
|
+
s0 = peg$f23();
|
|
1328
1506
|
} else {
|
|
1329
1507
|
peg$currPos = s0;
|
|
1330
1508
|
s0 = peg$FAILED;
|
|
@@ -1338,33 +1516,33 @@ return createNode('Identifier', location().start, location().end, { value: text(
|
|
|
1338
1516
|
|
|
1339
1517
|
s0 = peg$currPos;
|
|
1340
1518
|
s1 = input.charAt(peg$currPos);
|
|
1341
|
-
if (peg$
|
|
1519
|
+
if (peg$r6.test(s1)) {
|
|
1342
1520
|
peg$currPos++;
|
|
1343
1521
|
} else {
|
|
1344
1522
|
s1 = peg$FAILED;
|
|
1345
|
-
if (peg$silentFails === 0) { peg$fail(peg$
|
|
1523
|
+
if (peg$silentFails === 0) { peg$fail(peg$e14); }
|
|
1346
1524
|
}
|
|
1347
1525
|
if (s1 !== peg$FAILED) {
|
|
1348
1526
|
s2 = [];
|
|
1349
1527
|
s3 = input.charAt(peg$currPos);
|
|
1350
|
-
if (peg$
|
|
1528
|
+
if (peg$r4.test(s3)) {
|
|
1351
1529
|
peg$currPos++;
|
|
1352
1530
|
} else {
|
|
1353
1531
|
s3 = peg$FAILED;
|
|
1354
|
-
if (peg$silentFails === 0) { peg$fail(peg$
|
|
1532
|
+
if (peg$silentFails === 0) { peg$fail(peg$e11); }
|
|
1355
1533
|
}
|
|
1356
1534
|
while (s3 !== peg$FAILED) {
|
|
1357
1535
|
s2.push(s3);
|
|
1358
1536
|
s3 = input.charAt(peg$currPos);
|
|
1359
|
-
if (peg$
|
|
1537
|
+
if (peg$r4.test(s3)) {
|
|
1360
1538
|
peg$currPos++;
|
|
1361
1539
|
} else {
|
|
1362
1540
|
s3 = peg$FAILED;
|
|
1363
|
-
if (peg$silentFails === 0) { peg$fail(peg$
|
|
1541
|
+
if (peg$silentFails === 0) { peg$fail(peg$e11); }
|
|
1364
1542
|
}
|
|
1365
1543
|
}
|
|
1366
1544
|
peg$savedPos = s0;
|
|
1367
|
-
s0 = peg$
|
|
1545
|
+
s0 = peg$f24();
|
|
1368
1546
|
} else {
|
|
1369
1547
|
peg$currPos = s0;
|
|
1370
1548
|
s0 = peg$FAILED;
|
|
@@ -1378,20 +1556,20 @@ return createNode('Identifier', location().start, location().end, { value: text(
|
|
|
1378
1556
|
|
|
1379
1557
|
s0 = [];
|
|
1380
1558
|
s1 = input.charAt(peg$currPos);
|
|
1381
|
-
if (peg$
|
|
1559
|
+
if (peg$r8.test(s1)) {
|
|
1382
1560
|
peg$currPos++;
|
|
1383
1561
|
} else {
|
|
1384
1562
|
s1 = peg$FAILED;
|
|
1385
|
-
if (peg$silentFails === 0) { peg$fail(peg$
|
|
1563
|
+
if (peg$silentFails === 0) { peg$fail(peg$e16); }
|
|
1386
1564
|
}
|
|
1387
1565
|
while (s1 !== peg$FAILED) {
|
|
1388
1566
|
s0.push(s1);
|
|
1389
1567
|
s1 = input.charAt(peg$currPos);
|
|
1390
|
-
if (peg$
|
|
1568
|
+
if (peg$r8.test(s1)) {
|
|
1391
1569
|
peg$currPos++;
|
|
1392
1570
|
} else {
|
|
1393
1571
|
s1 = peg$FAILED;
|
|
1394
|
-
if (peg$silentFails === 0) { peg$fail(peg$
|
|
1572
|
+
if (peg$silentFails === 0) { peg$fail(peg$e16); }
|
|
1395
1573
|
}
|
|
1396
1574
|
}
|
|
1397
1575
|
|
|
@@ -1403,33 +1581,33 @@ return createNode('Identifier', location().start, location().end, { value: text(
|
|
|
1403
1581
|
|
|
1404
1582
|
s0 = peg$currPos;
|
|
1405
1583
|
s1 = input.charAt(peg$currPos);
|
|
1406
|
-
if (peg$
|
|
1584
|
+
if (peg$r9.test(s1)) {
|
|
1407
1585
|
peg$currPos++;
|
|
1408
1586
|
} else {
|
|
1409
1587
|
s1 = peg$FAILED;
|
|
1410
|
-
if (peg$silentFails === 0) { peg$fail(peg$
|
|
1588
|
+
if (peg$silentFails === 0) { peg$fail(peg$e17); }
|
|
1411
1589
|
}
|
|
1412
1590
|
if (s1 !== peg$FAILED) {
|
|
1413
1591
|
s2 = [];
|
|
1414
1592
|
s3 = input.charAt(peg$currPos);
|
|
1415
|
-
if (peg$
|
|
1593
|
+
if (peg$r4.test(s3)) {
|
|
1416
1594
|
peg$currPos++;
|
|
1417
1595
|
} else {
|
|
1418
1596
|
s3 = peg$FAILED;
|
|
1419
|
-
if (peg$silentFails === 0) { peg$fail(peg$
|
|
1597
|
+
if (peg$silentFails === 0) { peg$fail(peg$e11); }
|
|
1420
1598
|
}
|
|
1421
1599
|
while (s3 !== peg$FAILED) {
|
|
1422
1600
|
s2.push(s3);
|
|
1423
1601
|
s3 = input.charAt(peg$currPos);
|
|
1424
|
-
if (peg$
|
|
1602
|
+
if (peg$r4.test(s3)) {
|
|
1425
1603
|
peg$currPos++;
|
|
1426
1604
|
} else {
|
|
1427
1605
|
s3 = peg$FAILED;
|
|
1428
|
-
if (peg$silentFails === 0) { peg$fail(peg$
|
|
1606
|
+
if (peg$silentFails === 0) { peg$fail(peg$e11); }
|
|
1429
1607
|
}
|
|
1430
1608
|
}
|
|
1431
1609
|
peg$savedPos = s0;
|
|
1432
|
-
s0 = peg$
|
|
1610
|
+
s0 = peg$f25();
|
|
1433
1611
|
} else {
|
|
1434
1612
|
peg$currPos = s0;
|
|
1435
1613
|
s0 = peg$FAILED;
|
|
@@ -1443,33 +1621,33 @@ return createNode('Identifier', location().start, location().end, { value: text(
|
|
|
1443
1621
|
|
|
1444
1622
|
s0 = peg$currPos;
|
|
1445
1623
|
s1 = input.charAt(peg$currPos);
|
|
1446
|
-
if (peg$
|
|
1624
|
+
if (peg$r9.test(s1)) {
|
|
1447
1625
|
peg$currPos++;
|
|
1448
1626
|
} else {
|
|
1449
1627
|
s1 = peg$FAILED;
|
|
1450
|
-
if (peg$silentFails === 0) { peg$fail(peg$
|
|
1628
|
+
if (peg$silentFails === 0) { peg$fail(peg$e17); }
|
|
1451
1629
|
}
|
|
1452
1630
|
if (s1 !== peg$FAILED) {
|
|
1453
1631
|
s2 = [];
|
|
1454
1632
|
s3 = input.charAt(peg$currPos);
|
|
1455
|
-
if (peg$
|
|
1633
|
+
if (peg$r10.test(s3)) {
|
|
1456
1634
|
peg$currPos++;
|
|
1457
1635
|
} else {
|
|
1458
1636
|
s3 = peg$FAILED;
|
|
1459
|
-
if (peg$silentFails === 0) { peg$fail(peg$
|
|
1637
|
+
if (peg$silentFails === 0) { peg$fail(peg$e18); }
|
|
1460
1638
|
}
|
|
1461
1639
|
while (s3 !== peg$FAILED) {
|
|
1462
1640
|
s2.push(s3);
|
|
1463
1641
|
s3 = input.charAt(peg$currPos);
|
|
1464
|
-
if (peg$
|
|
1642
|
+
if (peg$r10.test(s3)) {
|
|
1465
1643
|
peg$currPos++;
|
|
1466
1644
|
} else {
|
|
1467
1645
|
s3 = peg$FAILED;
|
|
1468
|
-
if (peg$silentFails === 0) { peg$fail(peg$
|
|
1646
|
+
if (peg$silentFails === 0) { peg$fail(peg$e18); }
|
|
1469
1647
|
}
|
|
1470
1648
|
}
|
|
1471
1649
|
peg$savedPos = s0;
|
|
1472
|
-
s0 = peg$
|
|
1650
|
+
s0 = peg$f26(s1, s2);
|
|
1473
1651
|
} else {
|
|
1474
1652
|
peg$currPos = s0;
|
|
1475
1653
|
s0 = peg$FAILED;
|
|
@@ -1548,4 +1726,3 @@ export default {
|
|
|
1548
1726
|
parse: peg$parse
|
|
1549
1727
|
};
|
|
1550
1728
|
|
|
1551
|
-
|