MCPcopy Create free account
hub / github.com/codemix/htmling / peg$parseDoToken

Function peg$parseDoToken

lib/parser.js:6603–6638  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

6601 }
6602
6603 function peg$parseDoToken() {
6604 var s0, s1, s2, s3;
6605
6606 s0 = peg$currPos;
6607 if (input.substr(peg$currPos, 2) === peg$c276) {
6608 s1 = peg$c276;
6609 peg$currPos += 2;
6610 } else {
6611 s1 = peg$FAILED;
6612 if (peg$silentFails === 0) { peg$fail(peg$c277); }
6613 }
6614 if (s1 !== peg$FAILED) {
6615 s2 = peg$currPos;
6616 peg$silentFails++;
6617 s3 = peg$parseIdentifierPart();
6618 peg$silentFails--;
6619 if (s3 === peg$FAILED) {
6620 s2 = peg$c5;
6621 } else {
6622 peg$currPos = s2;
6623 s2 = peg$c3;
6624 }
6625 if (s2 !== peg$FAILED) {
6626 s1 = [s1, s2];
6627 s0 = s1;
6628 } else {
6629 peg$currPos = s0;
6630 s0 = peg$c3;
6631 }
6632 } else {
6633 peg$currPos = s0;
6634 s0 = peg$c3;
6635 }
6636
6637 return s0;
6638 }
6639
6640 function peg$parseElseToken() {
6641 var s0, s1, s2, s3;

Callers 1

peg$parseKeywordFunction · 0.85

Calls 2

peg$failFunction · 0.85
peg$parseIdentifierPartFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…