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

Function peg$parseGROUP

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

Source from the content-addressed store, hash-verified

14544 }
14545
14546 function peg$parseGROUP() {
14547 let s0, s1, s2, s3;
14548
14549 s0 = peg$currPos;
14550 s1 = input.substr(peg$currPos, 5);
14551 if (s1.toLowerCase() === peg$c54) {
14552 peg$currPos += (5);
14553 } else {
14554 s1 = peg$FAILED;
14555 if (peg$silentFails === 0) { peg$fail(peg$e59); }
14556 }
14557 if (s1 !== peg$FAILED) {
14558 s2 = peg$currPos;
14559 peg$silentFails++;
14560 s3 = peg$parseIdentifierPart();
14561 peg$silentFails--;
14562 if (s3 === peg$FAILED) {
14563 s2 = undefined;
14564 } else {
14565 peg$currPos = s2;
14566 s2 = peg$FAILED;
14567 }
14568 if (s2 !== peg$FAILED) {
14569 s1 = [s1, s2];
14570 s0 = s1;
14571 } else {
14572 peg$currPos = s0;
14573 s0 = peg$FAILED;
14574 }
14575 } else {
14576 peg$currPos = s0;
14577 s0 = peg$FAILED;
14578 }
14579
14580 return s0;
14581 }
14582
14583 function peg$parseASC() {
14584 let s0, s1, s2, s3;

Callers 2

peg$parseGroupByClauseFunction · 0.85
peg$parseKeywordFunction · 0.85

Calls 2

peg$failFunction · 0.85
peg$parseIdentifierPartFunction · 0.85

Tested by

no test coverage detected