Open uucidl opened 9 years ago
Good point! What would you think about folding the two missing cases into an h_many_between
that takes a lower and upper bound? up_to(n)
is like saying between(0, n)
.
Yeah that would be perfect!
By the way this came up as I was building an RFC5322 parser from the spec. The lines in the body are all supposed to be *998text
Cool. I'll try and get that banged into many.c this weekend.
Hammer has:
h_many
*(expr)
h_many1
1*(expr)
h_repeat_n
n*n(expr)
*n(expr)
i*j(expr)
I've searched the source code and to my knowledge the last two cases are missing, for expressions with many elements
up to
n
or many betweeni
andj
.