use std::io::Result; use pxp_parser::parser; const CODE: &str = r#" Result<()> { match parser::parse(CODE) { Ok(ast) => { println!("{:#?}", ast); } Err(err) => { println!("{}", err.report(CODE, None, true, false)?); println!("parsed so far: {:#?}", err.partial); } } Ok(()) }