pub fn parse<'s, T: Default, F>(s: &'s str, f: F) -> Option<T>where F: for<'t> FnOnce(&mut Parser<'s, 't>) -> Result<'s, 't, T>,
Lex a string and parse resulting tokens, returning None if any error occurred.
None
Example:
let t = parse("[] | .[]", |p| p.term());