-
Notifications
You must be signed in to change notification settings - Fork 37
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
Add wrapping fn for Fn(&str) -> IResult<&str, T>
parsers
#55
Labels
Comments
Is this still relevant in nom 6.0.0-alpha1? It might be easier just to wait for the new version of nom. |
Any update on this? The string example from nom sadly doesnt work with nom_locate :/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
As far as I can tell, some nom parsers (like
re_find!
) aren't generic enough, and must accept&str
input. This means you can't pass them aLocatedSpan
.It would be nice if there were a function that accepted one of those parsers and "lifted" it into a LocatedSpan -> LocatedSpan parser.
Here's as far as I got trying to implement this function:
The end result is that this function could be used like so:
The text was updated successfully, but these errors were encountered: