Show
Ignore:
Timestamp:
07/31/08 14:12:56 (5 months ago)
Author:
fglock
Message:

[v6.pm] more tests

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • perl5/Pugs-Compiler-Perl6/lib/Pugs/Emitter/Perl6/Perl5.pm

    r21648 r21650  
    836836        my $subname = $n->{sub}{bareword}; 
    837837        if ( $subname ) { 
     838            if ($subname eq 'next') { 
     839                my $param = $n->{param} ? _emit( $n->{param} ) : ''; 
     840                return " next $param "; 
     841            } 
     842            if ($subname eq 'redo') { 
     843                my $param = $n->{param} ? _emit( $n->{param} ) : ''; 
     844                return " redo $param "; 
     845            } 
     846 
    838847            if ($subname eq 'defined') { 
    839848                my $param = _emit( $n->{param} ); 
     
    11171126 
    11181127    if ( $n->{statement} eq 'do' ) { 
    1119         return 'do ' . emit_block( $n->{exp1} ); 
     1128        return 'do { for($_) ' . emit_block( $n->{exp1} ) . ' }'; 
    11201129    } 
    11211130    if ( $n->{statement} eq 'given' ) {