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

Function peg$parseMATCH

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

Source from the content-addressed store, hash-verified

13878 }
13879
13880 function peg$parseMATCH() {
13881 let s0, s1, s2, s3;
13882
13883 s0 = peg$currPos;
13884 s1 = input.substr(peg$currPos, 5);
13885 if (s1.toLowerCase() === peg$c36) {
13886 peg$currPos += (5);
13887 } else {
13888 s1 = peg$FAILED;
13889 if (peg$silentFails === 0) { peg$fail(peg$e41); }
13890 }
13891 if (s1 !== peg$FAILED) {
13892 s2 = peg$currPos;
13893 peg$silentFails++;
13894 s3 = peg$parseIdentifierPart();
13895 peg$silentFails--;
13896 if (s3 === peg$FAILED) {
13897 s2 = undefined;
13898 } else {
13899 peg$currPos = s2;
13900 s2 = peg$FAILED;
13901 }
13902 if (s2 !== peg$FAILED) {
13903 s1 = [s1, s2];
13904 s0 = s1;
13905 } else {
13906 peg$currPos = s0;
13907 s0 = peg$FAILED;
13908 }
13909 } else {
13910 peg$currPos = s0;
13911 s0 = peg$FAILED;
13912 }
13913
13914 return s0;
13915 }
13916
13917 function peg$parseWHERE() {
13918 let s0, s1, s2, s3;

Callers 4

peg$parseNonEmptyQueryFunction · 0.85
peg$parseOnMatchClauseFunction · 0.85
peg$parseMatchClauseFunction · 0.85
peg$parseKeywordFunction · 0.85

Calls 2

peg$failFunction · 0.85
peg$parseIdentifierPartFunction · 0.85

Tested by

no test coverage detected