8000 Replacing `TypeRepr`, `WhereClause` and etc with syn types and `rust!` with `quote!`. · Issue #949 · lalrpop/lalrpop · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Replacing TypeRepr, WhereClause and etc with syn types and rust! with quote!. #949

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

Open
Defman opened this issue Sep 15, 2024 · 1 comment

Comments

@Defman
Copy link
Defman commented Sep 15, 2024

First, would it be appreciated if I replace some of the current types used for code generation with the equivalent syn types.

Second, replace the rust! macro with quote.

You guys have most likely already thought of this, there might be reasons like compile time to avoid additional dependencies. However it might make the code generation more readable.

Kind regards
Jacob

@Pat-Lafon
Copy link
Contributor

This makes sense to me, there have been/are improvements to the Rust ecosystem that LALRPOP should take advantage of.

Would the main benefits be less code to maintain, a better on ramp to supporting more Rust syntax, and a better story than our current string concatenation?

I would hope the downsides in terms of compile/runtime aren't too steep but that is hard to know ahead of time. We can probably turn off some of syn's feature flags to limit the compile time increase.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants
0