rowan_nom

Function fold_many1

Source
pub fn fold_many1<'slice, 'src: 'slice, Lang: Language, C, E, IE>(
    init: impl Parser<Input<'slice, 'src, Lang>, Children<Lang, E>, IE>,
    then: impl Parser<Input<'slice, 'src, Lang>, C, IE>,
    merge: impl FnMut(Children<Lang, E>, C) -> Children<Lang, E>,
) -> impl FnMut(Input<'slice, 'src, Lang>) -> IResult<'slice, 'src, Lang, E, IE>
where Lang::Kind: 'static,
Expand description

Similar to nom::multi::fold_many1, but more specialized

Useful for parsing left-associative expressions