Skip to content

Add repNM for range repetition #242

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

Closed
pgrandjean opened this issue Oct 14, 2019 · 3 comments
Closed

Add repNM for range repetition #242

pgrandjean opened this issue Oct 14, 2019 · 3 comments

Comments

@pgrandjean
Copy link
Contributor

pgrandjean commented Oct 14, 2019

This is a proposal to add operator repNM that repeats a parser in a range(n, m). In other words, repNM would ensure that a parser is run at least m times and up to n times.

This proposal is a follow up on comments and code in Stackoverflow by Jörg W Mittag.

I have some working code that I would like to submit in a PR, if it is OK to continue with this proposal.

@SethTisue
Copy link
Member

I can't think of a reason this wouldn't be accepted

@pgrandjean
Copy link
Contributor Author

Great! Thank you.

pgrandjean added a commit to pgrandjean/scala-parser-combinators that referenced this issue Oct 16, 2019
pgrandjean added a commit to pgrandjean/scala-parser-combinators that referenced this issue Oct 16, 2019
pgrandjean added a commit to pgrandjean/scala-parser-combinators that referenced this issue Oct 16, 2019
@pgrandjean pgrandjean changed the title Add repMN for range repetition Add repNM for range repetition Oct 31, 2019
@pgrandjean
Copy link
Contributor Author

PR #245 merged

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants