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

Function peg$parseENDS

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

Source from the content-addressed store, hash-verified

15358 }
15359
15360 function peg$parseENDS() {
15361 let s0, s1, s2, s3;
15362
15363 s0 = peg$currPos;
15364 s1 = input.substr(peg$currPos, 4);
15365 if (s1.toLowerCase() === peg$c76) {
15366 peg$currPos += (4);
15367 } else {
15368 s1 = peg$FAILED;
15369 if (peg$silentFails === 0) { peg$fail(peg$e81); }
15370 }
15371 if (s1 !== peg$FAILED) {
15372 s2 = peg$currPos;
15373 peg$silentFails++;
15374 s3 = peg$parseIdentifierPart();
15375 peg$silentFails--;
15376 if (s3 === peg$FAILED) {
15377 s2 = undefined;
15378 } else {
15379 peg$currPos = s2;
15380 s2 = peg$FAILED;
15381 }
15382 if (s2 !== peg$FAILED) {
15383 s1 = [s1, s2];
15384 s0 = s1;
15385 } else {
15386 peg$currPos = s0;
15387 s0 = peg$FAILED;
15388 }
15389 } else {
15390 peg$currPos = s0;
15391 s0 = peg$FAILED;
15392 }
15393
15394 return s0;
15395 }
15396
15397 function peg$parseWITH() {
15398 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