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

Function peg$parseEOS

lib/parser.js:7646–7715  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

7644 }
7645
7646 function peg$parseEOS() {
7647 var s0, s1, s2, s3;
7648
7649 s0 = peg$currPos;
7650 s1 = peg$parse__();
7651 if (s1 !== peg$FAILED) {
7652 if (input.charCodeAt(peg$currPos) === 59) {
7653 s2 = peg$c328;
7654 peg$currPos++;
7655 } else {
7656 s2 = peg$FAILED;
7657 if (peg$silentFails === 0) { peg$fail(peg$c329); }
7658 }
7659 if (s2 !== peg$FAILED) {
7660 s1 = [s1, s2];
7661 s0 = s1;
7662 } else {
7663 peg$currPos = s0;
7664 s0 = peg$c3;
7665 }
7666 } else {
7667 peg$currPos = s0;
7668 s0 = peg$c3;
7669 }
7670 if (s0 === peg$FAILED) {
7671 s0 = peg$currPos;
7672 s1 = peg$parse_();
7673 if (s1 !== peg$FAILED) {
7674 s2 = peg$parseSingleLineComment();
7675 if (s2 === peg$FAILED) {
7676 s2 = peg$c0;
7677 }
7678 if (s2 !== peg$FAILED) {
7679 s3 = peg$parseLineTerminatorSequence();
7680 if (s3 !== peg$FAILED) {
7681 s1 = [s1, s2, s3];
7682 s0 = s1;
7683 } else {
7684 peg$currPos = s0;
7685 s0 = peg$c3;
7686 }
7687 } else {
7688 peg$currPos = s0;
7689 s0 = peg$c3;
7690 }
7691 } else {
7692 peg$currPos = s0;
7693 s0 = peg$c3;
7694 }
7695 if (s0 === peg$FAILED) {
7696 s0 = peg$currPos;
7697 s1 = peg$parse__();
7698 if (s1 !== peg$FAILED) {
7699 s2 = peg$parseEOF();
7700 if (s2 !== peg$FAILED) {
7701 s1 = [s1, s2];
7702 s0 = s1;
7703 } else {

Callers

nothing calls this directly

Calls 6

peg$parse__Function · 0.85
peg$failFunction · 0.85
peg$parse_Function · 0.85
peg$parseEOFFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…