MCPcopy Create free account
hub / github.com/codemix/graph / peg$parseAND

Function peg$parseAND

packages/graph/src/grammar.js:14953–14988  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

14951 }
14952
14953 function peg$parseAND() {
14954 let s0, s1, s2, s3;
14955
14956 s0 = peg$currPos;
14957 s1 = input.substr(peg$currPos, 3);
14958 if (s1.toLowerCase() === peg$c65) {
14959 peg$currPos += (3);
14960 } else {
14961 s1 = peg$FAILED;
14962 if (peg$silentFails === 0) { peg$fail(peg$e70); }
14963 }
14964 if (s1 !== peg$FAILED) {
14965 s2 = peg$currPos;
14966 peg$silentFails++;
14967 s3 = peg$parseIdentifierPart();
14968 peg$silentFails--;
14969 if (s3 === peg$FAILED) {
14970 s2 = undefined;
14971 } else {
14972 peg$currPos = s2;
14973 s2 = peg$FAILED;
14974 }
14975 if (s2 !== peg$FAILED) {
14976 s1 = [s1, s2];
14977 s0 = s1;
14978 } else {
14979 peg$currPos = s0;
14980 s0 = peg$FAILED;
14981 }
14982 } else {
14983 peg$currPos = s0;
14984 s0 = peg$FAILED;
14985 }
14986
14987 return s0;
14988 }
14989
14990 function peg$parseOR() {
14991 let s0, s1, s2, s3;

Callers 4

peg$parseAndConditionFunction · 0.85
peg$parseKeywordFunction · 0.85

Calls 2

peg$failFunction · 0.85
peg$parseIdentifierPartFunction · 0.85

Tested by

no test coverage detected