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

Function peg$parseCOUNT

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

Source from the content-addressed store, hash-verified

14026 }
14027
14028 function peg$parseCOUNT() {
14029 let s0, s1, s2, s3;
14030
14031 s0 = peg$currPos;
14032 s1 = input.substr(peg$currPos, 5);
14033 if (s1.toLowerCase() === peg$c40) {
14034 peg$currPos += (5);
14035 } else {
14036 s1 = peg$FAILED;
14037 if (peg$silentFails === 0) { peg$fail(peg$e45); }
14038 }
14039 if (s1 !== peg$FAILED) {
14040 s2 = peg$currPos;
14041 peg$silentFails++;
14042 s3 = peg$parseIdentifierPart();
14043 peg$silentFails--;
14044 if (s3 === peg$FAILED) {
14045 s2 = undefined;
14046 } else {
14047 peg$currPos = s2;
14048 s2 = peg$FAILED;
14049 }
14050 if (s2 !== peg$FAILED) {
14051 s1 = [s1, s2];
14052 s0 = s1;
14053 } else {
14054 peg$currPos = s0;
14055 s0 = peg$FAILED;
14056 }
14057 } else {
14058 peg$currPos = s0;
14059 s0 = peg$FAILED;
14060 }
14061
14062 return s0;
14063 }
14064
14065 function peg$parseSUM() {
14066 let s0, s1, s2, s3;

Callers 3

peg$parseWithExpressionFunction · 0.85
peg$parseReturnItemFunction · 0.85
peg$parseKeywordFunction · 0.85

Calls 2

peg$failFunction · 0.85
peg$parseIdentifierPartFunction · 0.85

Tested by

no test coverage detected