Hi,

Didn’t see anyone on IRC so I’ll just ask here. What do you guys think about 
adding the following functionality:

Parsing something that is repeated exactly x times, via `rule(:year) { 
integer.exactly(4) } `
Parsing something that is repeated at least x times, via `rule(:integer} { 
digit.at_least(1) }`

I find the `repeat` method a bit misleading at times. For instance, when I read 
integer.repeat(1), then I would assume that there may be exactly 1 integer. 
Moreover, when i would like something to be repeated exactly x times, then I 
have write repeat(x, x), which I find a bit awkward.

Let me know what you think :) I’d be happy to write a pull request.

—
Thomas

Reply via email to