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

Function peg$parseArrayExpression

lib/parser.js:5804–5933  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

5802 }
5803
5804 function peg$parseArrayExpression() {
5805 var s0, s1, s2, s3, s4, s5, s6, s7, s8, s9;
5806
5807 s0 = peg$currPos;
5808 if (input.charCodeAt(peg$currPos) === 91) {
5809 s1 = peg$c223;
5810 peg$currPos++;
5811 } else {
5812 s1 = peg$FAILED;
5813 if (peg$silentFails === 0) { peg$fail(peg$c224); }
5814 }
5815 if (s1 !== peg$FAILED) {
5816 s2 = peg$parse_();
5817 if (s2 !== peg$FAILED) {
5818 s3 = peg$parseIterateExpression();
5819 if (s3 === peg$FAILED) {
5820 s3 = peg$c0;
5821 }
5822 if (s3 !== peg$FAILED) {
5823 s4 = [];
5824 s5 = peg$currPos;
5825 s6 = peg$parse_();
5826 if (s6 !== peg$FAILED) {
5827 if (input.charCodeAt(peg$currPos) === 44) {
5828 s7 = peg$c171;
5829 peg$currPos++;
5830 } else {
5831 s7 = peg$FAILED;
5832 if (peg$silentFails === 0) { peg$fail(peg$c172); }
5833 }
5834 if (s7 !== peg$FAILED) {
5835 s8 = peg$parse_();
5836 if (s8 !== peg$FAILED) {
5837 s9 = peg$parseIterateExpression();
5838 if (s9 !== peg$FAILED) {
5839 s6 = [s6, s7, s8, s9];
5840 s5 = s6;
5841 } else {
5842 peg$currPos = s5;
5843 s5 = peg$c3;
5844 }
5845 } else {
5846 peg$currPos = s5;
5847 s5 = peg$c3;
5848 }
5849 } else {
5850 peg$currPos = s5;
5851 s5 = peg$c3;
5852 }
5853 } else {
5854 peg$currPos = s5;
5855 s5 = peg$c3;
5856 }
5857 while (s5 !== peg$FAILED) {
5858 s4.push(s5);
5859 s5 = peg$currPos;
5860 s6 = peg$parse_();
5861 if (s6 !== peg$FAILED) {

Callers 1

Calls 4

peg$failFunction · 0.85
peg$parse_Function · 0.85
peg$c229Function · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…