@formique/semantq
Advanced tools
+72
-59
@@ -308,10 +308,12 @@ // @generated by Peggy 5.1.0. | ||
| function peg$f21(head, tail) { | ||
| const options = [head]; | ||
| // The tail is an array of [whitespace, comma, whitespace, Option] tuples. | ||
| for (const item of tail) { | ||
| options.push(item[3]); // item[3] is the Option node | ||
| } | ||
| return options; | ||
| const options = [head]; | ||
| for (const item of tail) { | ||
| options.push(item[3]); | ||
| } | ||
| return options; | ||
| } | ||
| function peg$f22(value) { | ||
| function peg$f22(option) { | ||
| return [option]; | ||
| } | ||
| function peg$f23(value) { | ||
| return createNode('Option', location().start, location().end, { | ||
@@ -322,8 +324,8 @@ value: value.value, // Extract the value from the AttributeValue node | ||
| } | ||
| function peg$f23() { return text() } | ||
| function peg$f24() { return text() } | ||
| function peg$f25() { | ||
| function peg$f25() { return text() } | ||
| function peg$f26() { | ||
| return createNode('Identifier', location().start, location().end, { value: text() }) | ||
| } | ||
| function peg$f26(head, tail) { // 💡 FIX: Added space ' ' | ||
| function peg$f27(head, tail) { // 💡 FIX: Added space ' ' | ||
| return createNode('StringLiteral', location().start, location().end, { | ||
@@ -1091,3 +1093,3 @@ value: text() // Returns the entire matched text | ||
| function peg$parseNameWithType() { | ||
| let s0, s1, s2, s3, s4, s5, s6; | ||
| let s0, s1, s2, s3, s4, s5, s6, s7; | ||
@@ -1134,18 +1136,19 @@ s0 = peg$currPos; | ||
| if (s4 !== peg$FAILED) { | ||
| s5 = []; | ||
| s6 = input.charAt(peg$currPos); | ||
| if (peg$r4.test(s6)) { | ||
| s5 = peg$parse_(); | ||
| s6 = []; | ||
| s7 = input.charAt(peg$currPos); | ||
| if (peg$r4.test(s7)) { | ||
| peg$currPos++; | ||
| } else { | ||
| s6 = peg$FAILED; | ||
| s7 = peg$FAILED; | ||
| if (peg$silentFails === 0) { peg$fail(peg$e11); } | ||
| } | ||
| if (s6 !== peg$FAILED) { | ||
| while (s6 !== peg$FAILED) { | ||
| s5.push(s6); | ||
| s6 = input.charAt(peg$currPos); | ||
| if (peg$r4.test(s6)) { | ||
| if (s7 !== peg$FAILED) { | ||
| while (s7 !== peg$FAILED) { | ||
| s6.push(s7); | ||
| s7 = input.charAt(peg$currPos); | ||
| if (peg$r4.test(s7)) { | ||
| peg$currPos++; | ||
| } else { | ||
| s6 = peg$FAILED; | ||
| s7 = peg$FAILED; | ||
| if (peg$silentFails === 0) { peg$fail(peg$e11); } | ||
@@ -1155,7 +1158,7 @@ } | ||
| } else { | ||
| s5 = peg$FAILED; | ||
| s6 = peg$FAILED; | ||
| } | ||
| if (s5 !== peg$FAILED) { | ||
| if (s6 !== peg$FAILED) { | ||
| peg$savedPos = s0; | ||
| s0 = peg$f14(s1, s2, s3, s5); | ||
| s0 = peg$f14(s1, s2, s3, s6); | ||
| } else { | ||
@@ -1406,39 +1409,41 @@ peg$currPos = s0; | ||
| } | ||
| if (s3 !== peg$FAILED) { | ||
| while (s3 !== peg$FAILED) { | ||
| s2.push(s3); | ||
| s3 = peg$currPos; | ||
| s4 = peg$parse_(); | ||
| if (input.charCodeAt(peg$currPos) === 44) { | ||
| s5 = peg$c6; | ||
| peg$currPos++; | ||
| while (s3 !== peg$FAILED) { | ||
| s2.push(s3); | ||
| s3 = peg$currPos; | ||
| s4 = peg$parse_(); | ||
| if (input.charCodeAt(peg$currPos) === 44) { | ||
| s5 = peg$c6; | ||
| peg$currPos++; | ||
| } else { | ||
| s5 = peg$FAILED; | ||
| if (peg$silentFails === 0) { peg$fail(peg$e13); } | ||
| } | ||
| if (s5 !== peg$FAILED) { | ||
| s6 = peg$parse_(); | ||
| s7 = peg$parseOption(); | ||
| if (s7 !== peg$FAILED) { | ||
| s4 = [s4, s5, s6, s7]; | ||
| s3 = s4; | ||
| } else { | ||
| s5 = peg$FAILED; | ||
| if (peg$silentFails === 0) { peg$fail(peg$e13); } | ||
| } | ||
| if (s5 !== peg$FAILED) { | ||
| s6 = peg$parse_(); | ||
| s7 = peg$parseOption(); | ||
| if (s7 !== peg$FAILED) { | ||
| s4 = [s4, s5, s6, s7]; | ||
| s3 = s4; | ||
| } else { | ||
| peg$currPos = s3; | ||
| s3 = peg$FAILED; | ||
| } | ||
| } else { | ||
| peg$currPos = s3; | ||
| s3 = peg$FAILED; | ||
| } | ||
| } else { | ||
| peg$currPos = s3; | ||
| s3 = peg$FAILED; | ||
| } | ||
| } else { | ||
| s2 = peg$FAILED; | ||
| } | ||
| if (s2 !== peg$FAILED) { | ||
| peg$savedPos = s0; | ||
| s0 = peg$f21(s1, s2); | ||
| s3 = peg$parse_(); | ||
| if (input.charCodeAt(peg$currPos) === 44) { | ||
| s4 = peg$c6; | ||
| peg$currPos++; | ||
| } else { | ||
| peg$currPos = s0; | ||
| s0 = peg$FAILED; | ||
| s4 = peg$FAILED; | ||
| if (peg$silentFails === 0) { peg$fail(peg$e13); } | ||
| } | ||
| if (s4 === peg$FAILED) { | ||
| s4 = null; | ||
| } | ||
| peg$savedPos = s0; | ||
| s0 = peg$f21(s1, s2); | ||
| } else { | ||
@@ -1448,2 +1453,11 @@ peg$currPos = s0; | ||
| } | ||
| if (s0 === peg$FAILED) { | ||
| s0 = peg$currPos; | ||
| s1 = peg$parseOption(); | ||
| if (s1 !== peg$FAILED) { | ||
| peg$savedPos = s0; | ||
| s1 = peg$f22(s1); | ||
| } | ||
| s0 = s1; | ||
| } | ||
@@ -1474,3 +1488,3 @@ return s0; | ||
| peg$savedPos = s0; | ||
| s1 = peg$f22(s1); | ||
| s1 = peg$f23(s1); | ||
| } | ||
@@ -1513,3 +1527,3 @@ s0 = s1; | ||
| peg$savedPos = s0; | ||
| s0 = peg$f23(); | ||
| s0 = peg$f24(); | ||
| } else { | ||
@@ -1554,3 +1568,3 @@ peg$currPos = s0; | ||
| peg$savedPos = s0; | ||
| s0 = peg$f24(); | ||
| s0 = peg$f25(); | ||
| } else { | ||
@@ -1620,3 +1634,3 @@ peg$currPos = s0; | ||
| peg$savedPos = s0; | ||
| s0 = peg$f25(); | ||
| s0 = peg$f26(); | ||
| } else { | ||
@@ -1661,3 +1675,3 @@ peg$currPos = s0; | ||
| peg$savedPos = s0; | ||
| s0 = peg$f26(s1, s2); | ||
| s0 = peg$f27(s1, s2); | ||
| } else { | ||
@@ -1740,2 +1754,1 @@ peg$currPos = s0; | ||
| }; | ||
+1
-1
| { | ||
| "name": "@formique/semantq", | ||
| "version": "1.1.4", | ||
| "version": "1.1.5", | ||
| "description": "Formique is a native form builder for the Semantq JS Framework", | ||
@@ -5,0 +5,0 @@ "main": "formique-semantq.js", |
262693
0.09%6657
0.21%