jmeaster30 / vore

VerbOse Regular Expressions - Regular Expression Engine with Verbose English-like Syntax
MIT License
1 stars 0 forks source link

Collapse the start of the at least loop #82

Closed jmeaster30 closed 1 year ago

jmeaster30 commented 1 year ago

Similar to the exact loops we can collapse the start of an at least loop!

find all at least 4 digit is the same as find all digit digit digit digit at least 0 digit

jmeaster30 commented 1 year ago

I added this but also noticed that named loops would become broken by these unrollings so I set it to not unroll named loops. However, I think it is actually possible to allow named loops to be unrolled but it is a little challenging and would need quite a bit of detangling since the named loops rely on an entry in the loop stack being there which is not guaranteed