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

Function peg$parseSTARTS

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

Source from the content-addressed store, hash-verified

15321 }
15322
15323 function peg$parseSTARTS() {
15324 let s0, s1, s2, s3;
15325
15326 s0 = peg$currPos;
15327 s1 = input.substr(peg$currPos, 6);
15328 if (s1.toLowerCase() === peg$c75) {
15329 peg$currPos += (6);
15330 } else {
15331 s1 = peg$FAILED;
15332 if (peg$silentFails === 0) { peg$fail(peg$e80); }
15333 }
15334 if (s1 !== peg$FAILED) {
15335 s2 = peg$currPos;
15336 peg$silentFails++;
15337 s3 = peg$parseIdentifierPart();
15338 peg$silentFails--;
15339 if (s3 === peg$FAILED) {
15340 s2 = undefined;
15341 } else {
15342 peg$currPos = s2;
15343 s2 = peg$FAILED;
15344 }
15345 if (s2 !== peg$FAILED) {
15346 s1 = [s1, s2];
15347 s0 = s1;
15348 } else {
15349 peg$currPos = s0;
15350 s0 = peg$FAILED;
15351 }
15352 } else {
15353 peg$currPos = s0;
15354 s0 = peg$FAILED;
15355 }
15356
15357 return s0;
15358 }
15359
15360 function peg$parseENDS() {
15361 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