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

Function peg$parseComment

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

Source from the content-addressed store, hash-verified

18021 }
18022
18023 function peg$parseComment() {
18024 let s0, s1, s2, s3, s4, s5;
18025
18026 s0 = peg$currPos;
18027 if (input.substr(peg$currPos, 2) === peg$c115) {
18028 s1 = peg$c115;
18029 peg$currPos += 2;
18030 } else {
18031 s1 = peg$FAILED;
18032 if (peg$silentFails === 0) { peg$fail(peg$e132); }
18033 }
18034 if (s1 !== peg$FAILED) {
18035 s2 = [];
18036 s3 = peg$currPos;
18037 s4 = peg$currPos;
18038 peg$silentFails++;
18039 s5 = input.charAt(peg$currPos);
18040 if (peg$r15.test(s5)) {
18041 peg$currPos++;
18042 } else {
18043 s5 = peg$FAILED;
18044 if (peg$silentFails === 0) { peg$fail(peg$e133); }
18045 }
18046 peg$silentFails--;
18047 if (s5 === peg$FAILED) {
18048 s4 = undefined;
18049 } else {
18050 peg$currPos = s4;
18051 s4 = peg$FAILED;
18052 }
18053 if (s4 !== peg$FAILED) {
18054 if (input.length > peg$currPos) {
18055 s5 = input.charAt(peg$currPos);
18056 peg$currPos++;
18057 } else {
18058 s5 = peg$FAILED;
18059 if (peg$silentFails === 0) { peg$fail(peg$e111); }
18060 }
18061 if (s5 !== peg$FAILED) {
18062 s4 = [s4, s5];
18063 s3 = s4;
18064 } else {
18065 peg$currPos = s3;
18066 s3 = peg$FAILED;
18067 }
18068 } else {
18069 peg$currPos = s3;
18070 s3 = peg$FAILED;
18071 }
18072 while (s3 !== peg$FAILED) {
18073 s2.push(s3);
18074 s3 = peg$currPos;
18075 s4 = peg$currPos;
18076 peg$silentFails++;
18077 s5 = input.charAt(peg$currPos);
18078 if (peg$r15.test(s5)) {
18079 peg$currPos++;
18080 } else {

Callers 1

peg$parse_Function · 0.85

Calls 2

peg$failFunction · 0.85
pushMethod · 0.45

Tested by

no test coverage detected