- Timestamp:
- 07/29/08 20:52:35 (5 months ago)
- Location:
- perl5/Pugs-Compiler-Perl6
- Files:
-
- 5 modified
-
ChangeLog (modified) (1 diff)
-
MANIFEST (modified) (1 diff)
-
Makefile.PL (modified) (1 diff)
-
lib/Pugs/Emitter/Perl6/Perl5.pm (modified) (1 diff)
-
lib/v6.pm (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
perl5/Pugs-Compiler-Perl6/ChangeLog
r21607 r21617 1 0.030 2008-07-29 1 2 - more operators 2 3 -
perl5/Pugs-Compiler-Perl6/MANIFEST
r21577 r21617 151 151 t/regex/p6regex/p6regex.t 152 152 t/regex/p6regex/regex_tests 153 t/regex/perl5_1.t 154 # t/regex/perl5_2.t 155 # t/regex/perl5_3.t 156 # t/regex/perl5_4.t 157 t/regex/perl5_5.t 158 t/regex/perl5_6.t 159 t/regex/perl5_7.t 160 t/regex/perl5_8.t 161 t/regex/perl5_9.t 153 162 t/regex/rx_perl5_escape.t 154 163 t/regex/smartparse.t -
perl5/Pugs-Compiler-Perl6/Makefile.PL
r21597 r21617 131 131 $text =~ s/^\s*plan \d+;/plan 535;\nforce_todo(18..29,49..54,62,64,66,68,77,79,81..92,94..96,101..113,247,254..255,257,259..263,266,269,274,284,286,301,303..304,314,332..372,374..388,393..394,398,400..402,404..433,484..499,502,504,507,516..522,526..528$cpan_tester_errors);/m; 132 132 } 133 if ( $out eq 't/regex/perl5_9.t' ) { 134 $text =~ s/^\s*plan \d+;/plan 84;/m; 135 $text =~ s/^\s*force_todo.*?\n/force_todo(18,34,40,51,57,66,67);\n/m; 136 } 133 137 134 138 # add "use Test" to most files -
perl5/Pugs-Compiler-Perl6/lib/Pugs/Emitter/Perl6/Perl5.pm
r21607 r21617 1487 1487 my $regex = $rx->{rx}; 1488 1488 # XXX: hack for /$pattern/ 1489 $regex = 'q{'.$regex.'}' unless $regex =~ m/^\$[\w\d]+/; 1490 return '$::_V6_MATCH_ = Pugs::Compiler::Regex->compile( '.$regex.' )->match('._emit($n->{exp1}).')'; 1491 } 1489 $regex = _emit_single_quoted( $regex ) unless $regex =~ m/^\$[\w\d]+/; 1490 return '( $::_V6_MATCH_ = Pugs::Compiler::Regex->compile( '.$regex.' )->match('._emit($n->{exp1}).') )'; 1491 } 1492 my $regex = $rx->{rx}; 1493 $regex =~ s{\\}{\\\\}g; 1494 $regex =~ s{/}{\\/}g; 1495 # print "Regex: /$regex/\n"; 1496 my $code = Pugs::Compiler::RegexPerl5->compile( $regex )->{perl5}; 1497 return '( $::_V6_MATCH_ = ' 1498 . $code 1499 . '->( __PACKAGE__, \\('._emit($n->{exp1}).') ) ' 1500 . ')'; 1492 1501 } 1493 1502 if ( exists $n->{exp2}{int} && defined $n->{exp2}{int} -
perl5/Pugs-Compiler-Perl6/lib/v6.pm
r21598 r21617 1 1 package v6; 2 $v6::VERSION = '0.0 29';2 $v6::VERSION = '0.030'; 3 3 4 4 # Documentation in the __END__
