Function pear::parsers::take_while_until

source ·
pub fn take_while_until<I, T, F>(
    input: &mut Pear<I>,
    cond: F,
    until: T
) -> Result<I::Many, I>
where I: Input, T: Token<I>, F: FnMut(&I::Token) -> bool,
Expand description

Consumes tokens while cond matches and the token is not until. Succeeds even if no tokens match.