Skip to content

Add repNM for range repetition #242

Closed
@pgrandjean

Description

@pgrandjean

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions