mwobat

Results 2 issues of mwobat

I propose a combinator that repeats the first parser until the second one matches. [nom](https://github.com/Geal/nom) has an equivalent combinator: https://docs.rs/nom/7.1.1/nom/multi/fn.many_till.html The output type would be `(Vec, B)`, `A` and `B`...

Recently I wanted to write something like this: ```rust fn parser(input: &str) -> IResult { map( many_till( terminated(not_line_ending, line_ending), peek(alt((eof, header, modifier))), ), |(lines, _)| lines, )(input) } ``` where...