Skip to content

Commit

Permalink
Allow "not" token in expressions
Browse files Browse the repository at this point in the history
Closes #4000
  • Loading branch information
mattnibs committed Sep 25, 2023
1 parent 214ea42 commit 51160b8
Show file tree
Hide file tree
Showing 7 changed files with 1,653 additions and 1,569 deletions.
49 changes: 37 additions & 12 deletions compiler/parser/parser.es.js
Original file line number Diff line number Diff line change
Expand Up @@ -8113,25 +8113,50 @@ function peg$parse(input, options) {
var s0, s1, s2, s3;

s0 = peg$currPos;
if (input.charCodeAt(peg$currPos) === 33) {
s1 = peg$c79;
peg$currPos++;
s1 = peg$currPos;
s2 = peg$parseNotToken();
if (s2 !== peg$FAILED) {
s3 = peg$parse_();
if (s3 !== peg$FAILED) {
s2 = [s2, s3];
s1 = s2;
} else {
peg$currPos = s1;
s1 = peg$FAILED;
}
} else {
peg$currPos = s1;
s1 = peg$FAILED;
if (peg$silentFails === 0) { peg$fail(peg$c80); }
}
if (s1 !== peg$FAILED) {
s2 = peg$parse__();
if (s1 === peg$FAILED) {
s1 = peg$currPos;
if (input.charCodeAt(peg$currPos) === 33) {
s2 = peg$c79;
peg$currPos++;
} else {
s2 = peg$FAILED;
if (peg$silentFails === 0) { peg$fail(peg$c80); }
}
if (s2 !== peg$FAILED) {
s3 = peg$parseNotExpr();
s3 = peg$parse__();
if (s3 !== peg$FAILED) {
peg$savedPos = s0;
s1 = peg$c298(s3);
s0 = s1;
s2 = [s2, s3];
s1 = s2;
} else {
peg$currPos = s0;
s0 = peg$FAILED;
peg$currPos = s1;
s1 = peg$FAILED;
}
} else {
peg$currPos = s1;
s1 = peg$FAILED;
}
}
if (s1 !== peg$FAILED) {
s2 = peg$parseNotExpr();
if (s2 !== peg$FAILED) {
peg$savedPos = s0;
s1 = peg$c298(s2);
s0 = s1;
} else {
peg$currPos = s0;
s0 = peg$FAILED;
Expand Down
Loading

0 comments on commit 51160b8

Please sign in to comment.