-
Notifications
You must be signed in to change notification settings - Fork 11
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 optOccurence #174
Comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I was looking through the source code, and apparently there is no way to add a parser dynamically, since the function repeatable is not available :(
it'd be nice if you could add something like
masala-parser/src/lib/parsec/parser.js
Line 170 in 3fa77a2
or even
or both?
I would love to do a pull request, but I have no idea about haskell, and I can't understand what something like "// Parser 'a 'c => unit -> Parser (List 'a) 'c" means, so out of fear of just being wrong, I will just ask politely here 😁.
Yes, I know you could use something like
.opt().occurrence(x)
however, it seems wasteful, when x is bigThe text was updated successfully, but these errors were encountered: