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

Function peg$parseANY

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

Source from the content-addressed store, hash-verified

16135 }
16136
16137 function peg$parseANY() {
16138 let s0, s1, s2, s3;
16139
16140 s0 = peg$currPos;
16141 s1 = input.substr(peg$currPos, 3);
16142 if (s1.toLowerCase() === peg$c97) {
16143 peg$currPos += (3);
16144 } else {
16145 s1 = peg$FAILED;
16146 if (peg$silentFails === 0) { peg$fail(peg$e102); }
16147 }
16148 if (s1 !== peg$FAILED) {
16149 s2 = peg$currPos;
16150 peg$silentFails++;
16151 s3 = peg$parseIdentifierPart();
16152 peg$silentFails--;
16153 if (s3 === peg$FAILED) {
16154 s2 = undefined;
16155 } else {
16156 peg$currPos = s2;
16157 s2 = peg$FAILED;
16158 }
16159 if (s2 !== peg$FAILED) {
16160 s1 = [s1, s2];
16161 s0 = s1;
16162 } else {
16163 peg$currPos = s0;
16164 s0 = peg$FAILED;
16165 }
16166 } else {
16167 peg$currPos = s0;
16168 s0 = peg$FAILED;
16169 }
16170
16171 return s0;
16172 }
16173
16174 function peg$parseNONE() {
16175 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