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

Function peg$parseElseToken

lib/parser.js:6640–6675  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

6638 }
6639
6640 function peg$parseElseToken() {
6641 var s0, s1, s2, s3;
6642
6643 s0 = peg$currPos;
6644 if (input.substr(peg$currPos, 4) === peg$c278) {
6645 s1 = peg$c278;
6646 peg$currPos += 4;
6647 } else {
6648 s1 = peg$FAILED;
6649 if (peg$silentFails === 0) { peg$fail(peg$c279); }
6650 }
6651 if (s1 !== peg$FAILED) {
6652 s2 = peg$currPos;
6653 peg$silentFails++;
6654 s3 = peg$parseIdentifierPart();
6655 peg$silentFails--;
6656 if (s3 === peg$FAILED) {
6657 s2 = peg$c5;
6658 } else {
6659 peg$currPos = s2;
6660 s2 = peg$c3;
6661 }
6662 if (s2 !== peg$FAILED) {
6663 s1 = [s1, s2];
6664 s0 = s1;
6665 } else {
6666 peg$currPos = s0;
6667 s0 = peg$c3;
6668 }
6669 } else {
6670 peg$currPos = s0;
6671 s0 = peg$c3;
6672 }
6673
6674 return s0;
6675 }
6676
6677 function peg$parseEnumToken() {
6678 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…