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

Function peg$parseBacktickIdentifier

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

Source from the content-addressed store, hash-verified

17425 }
17426
17427 function peg$parseBacktickIdentifier() {
17428 let s0, s1, s2, s3;
17429
17430 s0 = peg$currPos;
17431 if (input.charCodeAt(peg$currPos) === 96) {
17432 s1 = peg$c112;
17433 peg$currPos++;
17434 } else {
17435 s1 = peg$FAILED;
17436 if (peg$silentFails === 0) { peg$fail(peg$e127); }
17437 }
17438 if (s1 !== peg$FAILED) {
17439 s2 = [];
17440 s3 = peg$parseBacktickChar();
17441 while (s3 !== peg$FAILED) {
17442 s2.push(s3);
17443 s3 = peg$parseBacktickChar();
17444 }
17445 if (input.charCodeAt(peg$currPos) === 96) {
17446 s3 = peg$c112;
17447 peg$currPos++;
17448 } else {
17449 s3 = peg$FAILED;
17450 if (peg$silentFails === 0) { peg$fail(peg$e127); }
17451 }
17452 if (s3 !== peg$FAILED) {
17453 peg$savedPos = s0;
17454 s0 = peg$f285(s2);
17455 } else {
17456 peg$currPos = s0;
17457 s0 = peg$FAILED;
17458 }
17459 } else {
17460 peg$currPos = s0;
17461 s0 = peg$FAILED;
17462 }
17463
17464 return s0;
17465 }
17466
17467 function peg$parseBacktickChar() {
17468 let s0, s1;

Callers 9

peg$parseMapKeyFunction · 0.85
peg$parseIdentifierFunction · 0.85
peg$parseLabelIdentifierFunction · 0.85
peg$parseAliasIdentifierFunction · 0.85

Calls 4

peg$failFunction · 0.85
peg$parseBacktickCharFunction · 0.85
peg$f285Function · 0.85
pushMethod · 0.45

Tested by

no test coverage detected