Following with KindaPerl6 development, and inspired by Yves Orton (demerphq++) Perl 5.10 Advanced Regular Expressions, I started working on an implementation of Perl6 regex on Perl5 regex.
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 Match
object.
- Flavio S. Glock (fglock)
Recent Comments