Skip to content
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

Research how to get rid of syn with full feature dependency #4

Closed
LukasKalbertodt opened this issue Jul 30, 2020 · 0 comments · Fixed by #8
Closed

Research how to get rid of syn with full feature dependency #4

LukasKalbertodt opened this issue Jul 30, 2020 · 0 comments · Fixed by #8

Comments

@LukasKalbertodt
Copy link
Owner

This adds quote a bit of compile time. I don't even need Rust AST types or anything. The only reason for syn is to parse an expression delimited by a comma. I.e. $foo:expr , in declarative macro syntax. But I don't really inspect the expression and just treat it as token stream. It's not trivial to parse that yourself, however. Take write!(foo(a, b), ".."): you can't stop after the first comma.

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

Successfully merging a pull request may close this issue.

1 participant