« "KindaPerl6" project roadmap | Main | Playing with the new "Not Quite Perl" »

2007.07.09

Perl6-regex on Perl5-regex

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)

Comments

What about the Haskell Pugs? Is it dead?

Now I see. Audrey still ill, eh? Take your time and get well soon then!

The prototype program link gives a 404 now. Has it been moved somewhere, or is it gone forever?

Post a comment