Function lip::zero_or_more_until
source · pub fn zero_or_more_until<'a, P, A: Clone + 'a, E, B: 'a, S: Clone + 'a>(
item_name: &'static str,
parser: P,
end_name: &'static str,
end_parser: E
) -> BoxedParser<'a, Vec<A>, S>where
P: Parser<'a, Output = A, State = S> + 'a,
E: Parser<'a, Output = B, State = ()> + 'a,
Expand description
Run the parser zero or more times until an end delimiter (or end of input) and combine each output into a vector of outputs.