Make a Matcher that takes 0 or more matches from the same parser and reduces them into one value in left-to-right (first-to-last) order.
Note: accumulator is the left (first) argument.
Use leftAssoc1 if you have an initial value to be parsed first.
Implementation is based on chainReduce and map.
Initial value for the accumulator.
Parser for each next value.
Function to combine the accumulator and each parsed value.
Accumulated value.
Value from each successful parsing.
Data object (tokens and options).
Position before current match.
Position after current match.
Make a Matcher that takes 0 or more matches from the same parser and reduces them into one value in left-to-right (first-to-last) order.
Note: accumulator is the left (first) argument.
Use leftAssoc1 if you have an initial value to be parsed first.
Implementation is based on chainReduce and map.