plex icon indicating copy to clipboard operation
plex copied to clipboard

No way to pass additional args to the lexer

Open martin-t opened this issue 6 years ago • 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.

martin-t avatar May 22 '19 22:05 martin-t

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

goffrie avatar Jun 16 '19 22:06 goffrie