plex
plex copied to clipboard
No way to pass additional args to the lexer
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.)