Skip to content

Feature/add support for repetition brackets operator#96

Merged
Saibo-creator merged 5 commits into
epfl-dlab:mainfrom
nathanrchn:feature/add-support-for-repetition-brackets-operator
Sep 19, 2024
Merged

Feature/add support for repetition brackets operator#96
Saibo-creator merged 5 commits into
epfl-dlab:mainfrom
nathanrchn:feature/add-support-for-repetition-brackets-operator

Conversation

@nathanrchn

Copy link
Copy Markdown
Contributor

This PR adds support for {} repetition operator #92.

The implementation supports all four standard patterns of the repetition operator:

  1. Exact repetition: "a"{10}
  2. Up to n repetitions: "a"{,10}
  3. n or more repetitions: "a"{10,}
  4. Range of repetitions: "a"{10,20}

For now I have tested this code with simple grammars, but I will add more unit-tests in the future.

@Saibo-creator
Saibo-creator merged commit ce259f0 into epfl-dlab:main Sep 19, 2024
@Saibo-creator

Copy link
Copy Markdown
Collaborator

Awesome! 👍

@nathanrchn
nathanrchn deleted the feature/add-support-for-repetition-brackets-operator branch September 19, 2024 06:36
@Viagounet

Viagounet commented Sep 20, 2024

Copy link
Copy Markdown

Highly appreciated, I will try it out soon! (and hopefully try and contribute to the overall project as well 😄)

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

Successfully merging this pull request may close these issues.

3 participants