pub fn expect<F>(f: F, token: &'static str) -> Parser<()> where F: 'static + Fn(&str) -> bool,
Call a function on the input, and if it returns false, throw an error.
false