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

Function peg$parseNONE

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

Source from the content-addressed store, hash-verified

16172 }
16173
16174 function peg$parseNONE() {
16175 let s0, s1, s2, s3;
16176
16177 s0 = peg$currPos;
16178 s1 = input.substr(peg$currPos, 4);
16179 if (s1.toLowerCase() === peg$c98) {
16180 peg$currPos += (4);
16181 } else {
16182 s1 = peg$FAILED;
16183 if (peg$silentFails === 0) { peg$fail(peg$e103); }
16184 }
16185 if (s1 !== peg$FAILED) {
16186 s2 = peg$currPos;
16187 peg$silentFails++;
16188 s3 = peg$parseIdentifierPart();
16189 peg$silentFails--;
16190 if (s3 === peg$FAILED) {
16191 s2 = undefined;
16192 } else {
16193 peg$currPos = s2;
16194 s2 = peg$FAILED;
16195 }
16196 if (s2 !== peg$FAILED) {
16197 s1 = [s1, s2];
16198 s0 = s1;
16199 } else {
16200 peg$currPos = s0;
16201 s0 = peg$FAILED;
16202 }
16203 } else {
16204 peg$currPos = s0;
16205 s0 = peg$FAILED;
16206 }
16207
16208 return s0;
16209 }
16210
16211 function peg$parseSINGLE() {
16212 let s0, s1, s2, s3;

Callers 3

peg$parseKeywordFunction · 0.85

Calls 2

peg$failFunction · 0.85
peg$parseIdentifierPartFunction · 0.85

Tested by

no test coverage detected