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

Function peg$parseEND

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

Source from the content-addressed store, hash-verified

16024 }
16025
16026 function peg$parseEND() {
16027 let s0, s1, s2, s3;
16028
16029 s0 = peg$currPos;
16030 s1 = input.substr(peg$currPos, 3);
16031 if (s1.toLowerCase() === peg$c94) {
16032 peg$currPos += (3);
16033 } else {
16034 s1 = peg$FAILED;
16035 if (peg$silentFails === 0) { peg$fail(peg$e99); }
16036 }
16037 if (s1 !== peg$FAILED) {
16038 s2 = peg$currPos;
16039 peg$silentFails++;
16040 s3 = peg$parseIdentifierPart();
16041 peg$silentFails--;
16042 if (s3 === peg$FAILED) {
16043 s2 = undefined;
16044 } else {
16045 peg$currPos = s2;
16046 s2 = peg$FAILED;
16047 }
16048 if (s2 !== peg$FAILED) {
16049 s1 = [s1, s2];
16050 s0 = s1;
16051 } else {
16052 peg$currPos = s0;
16053 s0 = peg$FAILED;
16054 }
16055 } else {
16056 peg$currPos = s0;
16057 s0 = peg$FAILED;
16058 }
16059
16060 return s0;
16061 }
16062
16063 function peg$parseUNION() {
16064 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