-
Notifications
You must be signed in to change notification settings - Fork 18
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
Remove boilerplates and fix bugs #23
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good 👍
Thanks a lot for your great work 🥇 |
I have problems with generated crates via
Please have a look at this. To reproduce this, please issue the command |
Thanks for merging!
I'll try to fix that as soon as possible. |
Fixed in #24 |
@ryo33, I experienced a problem with features of crates that are re-exported for reuse from
But currently I get this:
The feature I think that it isn't possible to use a re-exported crate and thereby changing the used feature set. Do you have any idea how to deal with that? I could simply add the line miette = { version = "5.2.0", features = ["fancy"] } to the crate's Cargo.toml but this seems awkward. |
I have an idea of one way that might work. I will try it tomorrow. |
I tried it and found it difficult at present. |
This is a separate discussion, but it seems a bit awkward that the generated code returns
Sometime soon, I was going to open an issue titled "Structural Errors". IMO It's sufficient to return the information necessary to produce a fancy error message as most parser combinator libraries do. |
You are right. This can surely be redesigned to emphasize the role of |
Requires: jsinger67/parol_runtime#2
I removed the boilerplates by using re-exports from
parol_runtime
.Also, I fixed two bugs:
/* */ */
for token '*/', and this causes a compile error.#![allow(unused_imports)]
generated by parol causes a compile error when usingimport!()
macro. [Rust] error: an inner attribute is not permitted in this context - #4968 regression google/flatbuffers#6261