goffrie/plex

No way to pass additional args to the lexer

martin-t opened this issue · 2 comments

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.

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.)