| 1 | package FLAT::Regex::Transform; | ||
| 2 | |||
| 3 | # Extends FLAT::Regex::WithExtraOps with PRegex transformations | ||
| 4 | # (i.e., reductions based on: w*v & a*b | ||
| 5 | |||
| 6 | use parent 'FLAT::Regex::WithExtraOps'; | ||
| 7 | |||
| 8 | sub new { | ||
| 9 | my $pkg = shift; | ||
| 10 | my $self = $pkg->SUPER::new(@_); | ||
| 11 | return $self; | ||
| 12 | } | ||
| 13 | |||
| 14 | # Ideally, the transformation should be implemented as an iterator. This | ||
| 15 | # approach will be finite for shuffles with NO closed strings, but will carry on | ||
| 16 | # indefinitely for the shuffle of strings where at least one of the strings is closed | ||
| 17 | |||
| 18 | 1; |