pear::parsers

Function enclosed

Source
pub fn enclosed<I, T, F>(
    input: &mut Pear<I>,
    start: T,
    cond: F,
    end: T,
) -> Result<I::Many, I>
where I: Input, T: Token<I>, F: FnMut(&I::Token) -> bool,
Expand description

Like delimited but keeps the start and end.