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

No way to pass additional args to the lexer #38

Open
martin-t opened this issue May 22, 2019 · 1 comment
Open

No way to pass additional args to the lexer #38

martin-t opened this issue May 22, 2019 · 1 comment

Comments

@martin-t
Copy link

I needed to pass an interner to the lexer (to avoid calling .to_owned() for idents) but there doesn't seem to be a way to add it to the signature without making the proc macro panic.

@goffrie
Copy link
Owner

goffrie commented Jun 16, 2019

Yup, this is just a limitation at the moment.

I think the best way to fix this would be to make lexer! not define a new function, but just an expression. I think I'm a bit too busy these days to fix that right now, though... (hence the 3 week response time, sorry.)

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