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

Function peg$parseForToken

lib/parser.js:6862–6897  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

6860 }
6861
6862 function peg$parseForToken() {
6863 var s0, s1, s2, s3;
6864
6865 s0 = peg$currPos;
6866 if (input.substr(peg$currPos, 3) === peg$c290) {
6867 s1 = peg$c290;
6868 peg$currPos += 3;
6869 } else {
6870 s1 = peg$FAILED;
6871 if (peg$silentFails === 0) { peg$fail(peg$c291); }
6872 }
6873 if (s1 !== peg$FAILED) {
6874 s2 = peg$currPos;
6875 peg$silentFails++;
6876 s3 = peg$parseIdentifierPart();
6877 peg$silentFails--;
6878 if (s3 === peg$FAILED) {
6879 s2 = peg$c5;
6880 } else {
6881 peg$currPos = s2;
6882 s2 = peg$c3;
6883 }
6884 if (s2 !== peg$FAILED) {
6885 s1 = [s1, s2];
6886 s0 = s1;
6887 } else {
6888 peg$currPos = s0;
6889 s0 = peg$c3;
6890 }
6891 } else {
6892 peg$currPos = s0;
6893 s0 = peg$c3;
6894 }
6895
6896 return s0;
6897 }
6898
6899 function peg$parseFunctionToken() {
6900 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…