Changeset 21617

Show
Ignore:
Timestamp:
07/29/08 20:52:35 (5 months ago)
Author:
fglock
Message:

[v6.pm] 0.030 # ~6200 tests pass

Location:
perl5/Pugs-Compiler-Perl6
Files:
5 modified

Legend:

Unmodified
Added
Removed
  • perl5/Pugs-Compiler-Perl6/ChangeLog

    r21607 r21617  
     10.030  2008-07-29 
    12- more operators 
    23 
  • perl5/Pugs-Compiler-Perl6/MANIFEST

    r21577 r21617  
    151151t/regex/p6regex/p6regex.t 
    152152t/regex/p6regex/regex_tests 
     153t/regex/perl5_1.t 
     154# t/regex/perl5_2.t 
     155# t/regex/perl5_3.t 
     156# t/regex/perl5_4.t 
     157t/regex/perl5_5.t 
     158t/regex/perl5_6.t 
     159t/regex/perl5_7.t 
     160t/regex/perl5_8.t 
     161t/regex/perl5_9.t 
    153162t/regex/rx_perl5_escape.t 
    154163t/regex/smartparse.t 
  • perl5/Pugs-Compiler-Perl6/Makefile.PL

    r21597 r21617  
    131131        $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; 
    132132    } 
     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    } 
    133137     
    134138    # add "use Test" to most files 
  • perl5/Pugs-Compiler-Perl6/lib/Pugs/Emitter/Perl6/Perl5.pm

    r21607 r21617  
    14871487                my $regex = $rx->{rx}; 
    14881488                # 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                . ')'; 
    14921501        } 
    14931502        if (   exists $n->{exp2}{int} && defined $n->{exp2}{int}  
  • perl5/Pugs-Compiler-Perl6/lib/v6.pm

    r21598 r21617  
    11package v6; 
    2 $v6::VERSION = '0.029'; 
     2$v6::VERSION = '0.030'; 
    33 
    44# Documentation in the __END__