-
Notifications
You must be signed in to change notification settings - Fork 107
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
Values parsed inside span #297
Comments
Probably it is better to return struct Spanned<T> {
pub value: T,
pub span: Span,
} |
@Mingun Sure, but how? |
I mean, that currently rust-peg returns just |
Duplicate of #283. There's a potential wokaround there, but I think it might be worth adding syntax for this. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
It would be really convenient to be able to do something like this:
As it stands I've made this kludge:
Which apparently parses
thing()
twice.The text was updated successfully, but these errors were encountered: