-
Notifications
You must be signed in to change notification settings - Fork 38
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
Missing utilities #14
Comments
Hi, just wonder if there is anyone working on this? I've just finished one project using Parsy and willing to contribute. |
I'm not working on this, contributions would be welcome. |
I've just sent a PR implementing the lookAhead #29 |
And here's a proposal for |
I've got a concern about my implementation of I did make a function, because it's how I implemented this as a helper function in a project of mine, no other reason. Is there a rule of thumb for this dilemma, method or function? Note that Same question for #31. |
@lisael - yes, it is a bit hard to decide in some cases. I think For things that don't take a parser as an argument, or can take more than one, we use functions. I think that's a good rule of thumb. |
There are probably a few missing pieces in terms of building parsers. Some of the following from Parsec/Parsimmon:
notFollowedBy
manyTill
lookAhead
It would be good to be able to easily express "discard everything until ..." or "collect everything until ..." which doesn't seem to be easy at the moment, but would be easier with the above utilities.
The text was updated successfully, but these errors were encountered: