-
Notifications
You must be signed in to change notification settings - Fork 105
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
Allow 'input lifetime parameter for token definitions. #270
Comments
I think this was fixed by #254 -- does this work? peg::parser!{
grammar tokenparser<'a>() for [Token<'a>] {
...
}
} |
It just creates a separate lifetime ... Also the following does not work either ....
"lifetime name |
Hmm, so the problem is that you want to produce a result containing Ideally I'd like to get rid of the magic |
I might have had a brief mental lapse here. I conflated the lifetime of the token stream with the lifetime of the string used to generate it. Regardless, I like your explicit lifetime syntax. Maybe you can elide the lifetime when the grammar does not reference it? |
Note the following code does not compile because of
'input
. Please consider allowing this use case.The text was updated successfully, but these errors were encountered: