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

Function peg$parseAVG

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

Source from the content-addressed store, hash-verified

14100 }
14101
14102 function peg$parseAVG() {
14103 let s0, s1, s2, s3;
14104
14105 s0 = peg$currPos;
14106 s1 = input.substr(peg$currPos, 3);
14107 if (s1.toLowerCase() === peg$c42) {
14108 peg$currPos += (3);
14109 } else {
14110 s1 = peg$FAILED;
14111 if (peg$silentFails === 0) { peg$fail(peg$e47); }
14112 }
14113 if (s1 !== peg$FAILED) {
14114 s2 = peg$currPos;
14115 peg$silentFails++;
14116 s3 = peg$parseIdentifierPart();
14117 peg$silentFails--;
14118 if (s3 === peg$FAILED) {
14119 s2 = undefined;
14120 } else {
14121 peg$currPos = s2;
14122 s2 = peg$FAILED;
14123 }
14124 if (s2 !== peg$FAILED) {
14125 s1 = [s1, s2];
14126 s0 = s1;
14127 } else {
14128 peg$currPos = s0;
14129 s0 = peg$FAILED;
14130 }
14131 } else {
14132 peg$currPos = s0;
14133 s0 = peg$FAILED;
14134 }
14135
14136 return s0;
14137 }
14138
14139 function peg$parseMIN() {
14140 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