Skip to content

Conversation

@drmfinlay
Copy link
Member

@drmfinlay drmfinlay commented Aug 6, 2025

Re: #394.

The max constructor arguments of the Repetition and Integer classes are now treated as inclusive, rather than exclusive. This seems more sensible and matches the treatment of the min argument.

For the Integer class, I have elected not to change the complex internal classes that do the most of the work. They receive the value max + 1. This shouldn't matter, but I'm noting it here.

The Digits element class is affected by this change, as it is a subclass of Repetition.

Repetition and number element test cases have been updated appropriately.

Re: #394.

The *max* constructor arguments of the Repetition and Integer class-
es are now treated as inclusive, rather than exclusive.  This seems
more sensible and matches the treatment of the *min* argument.

For the Integer class, I have elected not to change the complex int-
ernal classes that do the most of the work.  They receive the value
*max + 1*.  This shouldn't matter, but I'm noting it here.

The Digits element class is affected by this change, as it is a sub-
class of Repetition.
Re changes to Repetition and Integer *max* constructor arguments.
@drmfinlay drmfinlay force-pushed the feat/max-element-changes branch from 8183ef6 to 386f9be Compare August 6, 2025 07:04
Re: #394.

The OneOrMore element class is a sub-class of Repetition which matc-
hes a child element one or more times -- i.e. Kleene plus behaviour.
The default maximum number of repetitions is sixteen and can be adj-
usted via the class member *default_max*.

OneOrMore is a simpler way of using Dragonfly's Repetition element
for what is commonly called Continuous Command Recognition (CCR).
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.

2 participants