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

Function peg$parseSUM

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

Source from the content-addressed store, hash-verified

14063 }
14064
14065 function peg$parseSUM() {
14066 let s0, s1, s2, s3;
14067
14068 s0 = peg$currPos;
14069 s1 = input.substr(peg$currPos, 3);
14070 if (s1.toLowerCase() === peg$c41) {
14071 peg$currPos += (3);
14072 } else {
14073 s1 = peg$FAILED;
14074 if (peg$silentFails === 0) { peg$fail(peg$e46); }
14075 }
14076 if (s1 !== peg$FAILED) {
14077 s2 = peg$currPos;
14078 peg$silentFails++;
14079 s3 = peg$parseIdentifierPart();
14080 peg$silentFails--;
14081 if (s3 === peg$FAILED) {
14082 s2 = undefined;
14083 } else {
14084 peg$currPos = s2;
14085 s2 = peg$FAILED;
14086 }
14087 if (s2 !== peg$FAILED) {
14088 s1 = [s1, s2];
14089 s0 = s1;
14090 } else {
14091 peg$currPos = s0;
14092 s0 = peg$FAILED;
14093 }
14094 } else {
14095 peg$currPos = s0;
14096 s0 = peg$FAILED;
14097 }
14098
14099 return s0;
14100 }
14101
14102 function peg$parseAVG() {
14103 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