-
-
Notifications
You must be signed in to change notification settings - Fork 264
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Please add an example on how to define multiple Parser
structs in the same crate
#335
Milestone
Comments
Due to the fact that the current derive spills the mod a {
#[derive(Parser)]
#[grammar = "a.pest"]
pub struct Parser;
}
mod b {
#[derive(Parser)]
#[grammar = "b.pest"]
pub struct Parser;
} You then have |
This works, thanks for your hint! However if you agree I would keep this issue open, as in my opinion a similar example should be reported in the |
tomtau
pushed a commit
to tomtau/pest
that referenced
this issue
Nov 4, 2022
added missing_docs warning etc. and documented the currently undocumented public APIs. added additional explanations in README, updated links, etc. Closes pest-parser#335 Closes pest-parser#299 Closes pest-parser#298 Closes pest-parser#297 Closes pest-parser#185
tomtau
pushed a commit
to tomtau/pest
that referenced
this issue
Nov 4, 2022
added missing_docs warning etc. and documented the currently undocumented public APIs. added additional explanations in README, updated links, etc. Closes pest-parser#335 Closes pest-parser#299 Closes pest-parser#298 Closes pest-parser#297 Closes pest-parser#185
tomtau
pushed a commit
to tomtau/pest
that referenced
this issue
Nov 4, 2022
added missing_docs warning etc. and documented the currently undocumented public APIs. added additional explanations in README, updated links, etc. Closes pest-parser#335 Closes pest-parser#299 Closes pest-parser#298 Closes pest-parser#297 Closes pest-parser#185
tomtau
pushed a commit
to tomtau/pest
that referenced
this issue
Nov 4, 2022
added missing_docs warning etc. and documented the currently undocumented public APIs. added additional explanations in README, updated links, etc. Closes pest-parser#335 Closes pest-parser#299 Closes pest-parser#298 Closes pest-parser#297 Closes pest-parser#185
tomtau
pushed a commit
to tomtau/pest
that referenced
this issue
Nov 4, 2022
added missing_docs warning etc. and documented the currently undocumented public APIs. added additional explanations in README, updated links, etc. Closes pest-parser#335 Closes pest-parser#299 Closes pest-parser#298 Closes pest-parser#297 Closes pest-parser#185
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
As in subject, I am struggling to understand how to define multiple
Parser
structs in the same crate, each one relying on its own grammar file.The text was updated successfully, but these errors were encountered: