Hi,
I've pushed the branch match_perl to github which implements Match.perl.
What it emits is valid Perl 6 (I hope), but since Match.new() doesn't
seem to work with named parameters yet, the result can not be evaluated
back to match object.
The output is extremely useful for debugging, IMHO:
$ ./perl6 -e 'rule w { \w+ }; "ab cde" ~~ m/:s (.)(\w) <w>/; say $/.perl'
Match.new(
# WARNING: this is not working perl code
# and for debugging purposes only
text => "ab cde",
from => 0,
to => 6,
positional => [
Match.new(
text => "a",
from => 0,
to => 1,
),
Match.new(
text => "b",
from => 1,
to => 2,
),
],
named => {
w => "cde",
},
)
Should I merge that branch? Or should I maintain it until Match.new does
what I want it to do?
Cheers,
Moritz
--
Moritz Lenz
http://perlgeek.de/ | http://perl-6.de/ | http://sudokugarden.de/