After some experimentation, I ended up with a prototype program that works in Perl 5.8.
The algorithm is now being implemented as an alternate KindaPerl6 backend. It can compile some complex patterns already. The command line for the
perl5rx backend looks like:
$ perl kp6-perl5.pl --perl5rx < examples/token-test.pl | perl -I lib5regex -I lib
The program output is a dump of the resulting
- Flavio S. Glock (fglock)