-
How would one go about getting the source code of a generated parser? |
Beta Was this translation helpful? Give feedback.
Answered by
glyn
Apr 16, 2022
Replies: 1 comment
-
I used
If you only want documentation for the generated code, the pest book suggests
documents the generated parser code. |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
danaugrs
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I used
cargo expand
. I put this in a scratch file with extension.rs
so my editor provides syntax highlighting:If you only want documentation for the generated code, the pest book suggests
cargo doc
will do the trick, but I couldn't get that to work (even using the--all
switch). I finally discovered that:documents the generated parser code.