MCPcopy
hub / github.com/pegjs/pegjs / peg$parseDefaultToken

Function peg$parseDefaultToken

lib/parser.js:3758–3793  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

3756 }
3757
3758 function peg$parseDefaultToken() {
3759 var s0, s1, s2, s3;
3760
3761 s0 = peg$currPos;
3762 if (input.substr(peg$currPos, 7) === peg$c180) {
3763 s1 = peg$c180;
3764 peg$currPos += 7;
3765 } else {
3766 s1 = peg$FAILED;
3767 if (peg$silentFails === 0) { peg$fail(peg$c181); }
3768 }
3769 if (s1 !== peg$FAILED) {
3770 s2 = peg$currPos;
3771 peg$silentFails++;
3772 s3 = peg$parseIdentifierPart();
3773 peg$silentFails--;
3774 if (s3 === peg$FAILED) {
3775 s2 = void 0;
3776 } else {
3777 peg$currPos = s2;
3778 s2 = peg$FAILED;
3779 }
3780 if (s2 !== peg$FAILED) {
3781 s1 = [s1, s2];
3782 s0 = s1;
3783 } else {
3784 peg$currPos = s0;
3785 s0 = peg$FAILED;
3786 }
3787 } else {
3788 peg$currPos = s0;
3789 s0 = peg$FAILED;
3790 }
3791
3792 return s0;
3793 }
3794
3795 function peg$parseDeleteToken() {
3796 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…