Replies: 1 comment
-
After some messing around, I found that the regular println!("{}", FooParser::parse(Rule::relation_definition, "your input").unwrap()); and copy/paste the output into |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
While the
parses_to! {}
macro makes debugging parser output very nice as soon as you get the tokens setup, I would very much like to easily update the expected output with what I'm actually getting.Currently it errors with by enumerating a whole lot of
Start
andEnd
"events", but I can't just copy-paste that into the tokens list after I re-adjust my grammar to capture the right things.Even for quite little examples, it will get wordy and indexing is a hassle to update:
Do you know of any way to generate the nested tokens list and print it?
Beta Was this translation helpful? Give feedback.
All reactions