Function cond
pub fn cond<I, E: ParseError<I>, F>(b: bool, f: F) -> impl Parser<I, Output = Option<<F as Parser<I>>::Output>, Error = E>
where
F: Parser<I, Error = E>,
Calls the parser if the condition is met.
# use ;
use cond;
use alpha1;
#