-
Readme mentions "meaningful error reporting" however I have not found how to print such a pretty-printed error. Looked through docs.rs, the book, and examples. |
Beta Was this translation helpful? Give feedback.
Answered by
tomtau
Oct 2, 2022
Replies: 1 comment 1 reply
-
The default let result = YourParser::parse(Rule::your_rule, &input);
println!("{}", result.unwrap_err()); |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
tomtau
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The default
Display
should work: