MCPcopy Create free account
hub / github.com/codemix/graph / peg$parseCreatePatternList

Function peg$parseCreatePatternList

packages/graph/src/grammar.js:3788–3852  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

3786 }
3787
3788 function peg$parseCreatePatternList() {
3789 let s0, s1, s2, s3, s4, s5, s6, s7;
3790
3791 s0 = peg$currPos;
3792 s1 = peg$parseCreatePattern();
3793 if (s1 !== peg$FAILED) {
3794 s2 = [];
3795 s3 = peg$currPos;
3796 s4 = peg$parse_();
3797 if (input.charCodeAt(peg$currPos) === 44) {
3798 s5 = peg$c1;
3799 peg$currPos++;
3800 } else {
3801 s5 = peg$FAILED;
3802 if (peg$silentFails === 0) { peg$fail(peg$e1); }
3803 }
3804 if (s5 !== peg$FAILED) {
3805 s6 = peg$parse_();
3806 s7 = peg$parseCreatePattern();
3807 if (s7 !== peg$FAILED) {
3808 s4 = [s4, s5, s6, s7];
3809 s3 = s4;
3810 } else {
3811 peg$currPos = s3;
3812 s3 = peg$FAILED;
3813 }
3814 } else {
3815 peg$currPos = s3;
3816 s3 = peg$FAILED;
3817 }
3818 while (s3 !== peg$FAILED) {
3819 s2.push(s3);
3820 s3 = peg$currPos;
3821 s4 = peg$parse_();
3822 if (input.charCodeAt(peg$currPos) === 44) {
3823 s5 = peg$c1;
3824 peg$currPos++;
3825 } else {
3826 s5 = peg$FAILED;
3827 if (peg$silentFails === 0) { peg$fail(peg$e1); }
3828 }
3829 if (s5 !== peg$FAILED) {
3830 s6 = peg$parse_();
3831 s7 = peg$parseCreatePattern();
3832 if (s7 !== peg$FAILED) {
3833 s4 = [s4, s5, s6, s7];
3834 s3 = s4;
3835 } else {
3836 peg$currPos = s3;
3837 s3 = peg$FAILED;
3838 }
3839 } else {
3840 peg$currPos = s3;
3841 s3 = peg$FAILED;
3842 }
3843 }
3844 peg$savedPos = s0;
3845 s0 = peg$f32(s1, s2);

Callers 1

peg$parseCreateClauseFunction · 0.85

Calls 5

peg$parseCreatePatternFunction · 0.85
peg$parse_Function · 0.85
peg$failFunction · 0.85
peg$f32Function · 0.85
pushMethod · 0.45

Tested by

no test coverage detected