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

Function peg$parseParenthesizedInnerPattern

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

Source from the content-addressed store, hash-verified

6422 }
6423
6424 function peg$parseParenthesizedInnerPattern() {
6425 let s0, s1, s2, s3, s4;
6426
6427 s0 = peg$currPos;
6428 s1 = peg$parseNodePattern();
6429 if (s1 !== peg$FAILED) {
6430 s2 = peg$parse_();
6431 s3 = [];
6432 s4 = peg$parseEdgeAndNodePattern();
6433 while (s4 !== peg$FAILED) {
6434 s3.push(s4);
6435 s4 = peg$parseEdgeAndNodePattern();
6436 }
6437 peg$savedPos = s0;
6438 s0 = peg$f96(s1, s3);
6439 } else {
6440 peg$currPos = s0;
6441 s0 = peg$FAILED;
6442 }
6443
6444 return s0;
6445 }
6446
6447 function peg$parseNodePattern() {
6448 let s0, s1, s2, s3, s4, s5, s6, s7, s8;

Callers 1

Calls 5

peg$parseNodePatternFunction · 0.85
peg$parse_Function · 0.85
peg$f96Function · 0.85
pushMethod · 0.45

Tested by

no test coverage detected