iter-tools / regex

A streaming regex evaluation engine
MIT License
11 stars 1 forks source link

Optimization: demote expressions to sequences #15

Closed conartist6 closed 3 years ago

conartist6 commented 3 years ago

Demote expressions to sequences as soon as they have only a single alternative. This is sensible now that the implementation already creates expressions with only a single alternative as sequences. This should simplify current fail code in the engine.