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

Function peg$parseParameterIdentifier

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

Source from the content-addressed store, hash-verified

5759 }
5760
5761 function peg$parseParameterIdentifier() {
5762 let s0, s1, s2, s3;
5763
5764 s0 = peg$parseBacktickIdentifier();
5765 if (s0 === peg$FAILED) {
5766 s0 = peg$currPos;
5767 s1 = input.charAt(peg$currPos);
5768 if (peg$r0.test(s1)) {
5769 peg$currPos++;
5770 } else {
5771 s1 = peg$FAILED;
5772 if (peg$silentFails === 0) { peg$fail(peg$e12); }
5773 }
5774 if (s1 !== peg$FAILED) {
5775 s2 = [];
5776 s3 = input.charAt(peg$currPos);
5777 if (peg$r1.test(s3)) {
5778 peg$currPos++;
5779 } else {
5780 s3 = peg$FAILED;
5781 if (peg$silentFails === 0) { peg$fail(peg$e13); }
5782 }
5783 while (s3 !== peg$FAILED) {
5784 s2.push(s3);
5785 s3 = input.charAt(peg$currPos);
5786 if (peg$r1.test(s3)) {
5787 peg$currPos++;
5788 } else {
5789 s3 = peg$FAILED;
5790 if (peg$silentFails === 0) { peg$fail(peg$e13); }
5791 }
5792 }
5793 peg$savedPos = s0;
5794 s0 = peg$f81(s1, s2);
5795 } else {
5796 peg$currPos = s0;
5797 s0 = peg$FAILED;
5798 }
5799 }
5800
5801 return s0;
5802 }
5803
5804 function peg$parseMatchClause() {
5805 let s0, s1, s2, s3, s4;

Callers 1

peg$parseParameterRefFunction · 0.85

Calls 4

peg$failFunction · 0.85
peg$f81Function · 0.85
pushMethod · 0.45

Tested by

no test coverage detected