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

Function peg$parseEXPRESSION

lib/parser.js:2836–2893  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

2834 }
2835
2836 function peg$parseEXPRESSION() {
2837 var s0, s1, s2, s3, s4, s5;
2838
2839 peg$silentFails++;
2840 s0 = peg$currPos;
2841 if (input.substr(peg$currPos, 2) === peg$c74) {
2842 s1 = peg$c74;
2843 peg$currPos += 2;
2844 } else {
2845 s1 = peg$FAILED;
2846 if (peg$silentFails === 0) { peg$fail(peg$c75); }
2847 }
2848 if (s1 !== peg$FAILED) {
2849 s2 = peg$parse_();
2850 if (s2 !== peg$FAILED) {
2851 s3 = peg$parseExpressionStatement();
2852 if (s3 !== peg$FAILED) {
2853 s4 = peg$parse_();
2854 if (s4 !== peg$FAILED) {
2855 if (input.substr(peg$currPos, 2) === peg$c76) {
2856 s5 = peg$c76;
2857 peg$currPos += 2;
2858 } else {
2859 s5 = peg$FAILED;
2860 if (peg$silentFails === 0) { peg$fail(peg$c77); }
2861 }
2862 if (s5 !== peg$FAILED) {
2863 peg$reportedPos = s0;
2864 s1 = peg$c70(s3);
2865 s0 = s1;
2866 } else {
2867 peg$currPos = s0;
2868 s0 = peg$c3;
2869 }
2870 } else {
2871 peg$currPos = s0;
2872 s0 = peg$c3;
2873 }
2874 } else {
2875 peg$currPos = s0;
2876 s0 = peg$c3;
2877 }
2878 } else {
2879 peg$currPos = s0;
2880 s0 = peg$c3;
2881 }
2882 } else {
2883 peg$currPos = s0;
2884 s0 = peg$c3;
2885 }
2886 peg$silentFails--;
2887 if (s0 === peg$FAILED) {
2888 s1 = peg$FAILED;
2889 if (peg$silentFails === 0) { peg$fail(peg$c73); }
2890 }
2891
2892 return s0;
2893 }

Callers 1

peg$parseATTRIBUTE_VALUEFunction · 0.85

Calls 4

peg$failFunction · 0.85
peg$parse_Function · 0.85
peg$c70Function · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…