pub fn parse<T, P>(src: &str, parser: P) -> (Option<T>, Vec<Error>) where
    P: Parser<Token, T, Error = Simple<Token>> + Clone
Expand description

Parse a string with a given parser.

May produce Some output even if there were errors.