- Timestamp:
- 07/31/08 14:12:56 (5 months ago)
- Location:
- perl5/Pugs-Compiler-Perl6
- Files:
-
- 3 modified
-
MANIFEST (modified) (1 diff)
-
Makefile.PL (modified) (1 diff)
-
lib/Pugs/Emitter/Perl6/Perl5.pm (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
perl5/Pugs-Compiler-Perl6/MANIFEST
r21617 r21650 164 164 t/spec/S02-builtin_data_types/array_extending.t 165 165 t/spec/S02-builtin_data_types/nested_arrays.t 166 t/spec/S04-statements/do.t 166 167 t/spec/S04-statements/until.t 167 168 t/spec/S10-packages/import.t -
perl5/Pugs-Compiler-Perl6/Makefile.PL
r21633 r21650 143 143 $text =~ s/^\s*force_todo.*?\n/force_todo(18,34,40,51,57,66,67);\n/m; 144 144 } 145 if ( $out eq 't/spec/S04-statements/do.t' ) { 146 $text = "force_todo(1..8,10..16,20..23);\n" . $text; 147 # redo works in perl5 blocks 148 $text =~ s/^([^\n]*?\; *redo\;)/ok( 0, "redo works in perl5 blocks", :todo ) ; # $1/mg; 149 } 145 150 146 151 # add "use Test" to most files -
perl5/Pugs-Compiler-Perl6/lib/Pugs/Emitter/Perl6/Perl5.pm
r21648 r21650 836 836 my $subname = $n->{sub}{bareword}; 837 837 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 838 847 if ($subname eq 'defined') { 839 848 my $param = _emit( $n->{param} ); … … 1117 1126 1118 1127 if ( $n->{statement} eq 'do' ) { 1119 return 'do ' . emit_block( $n->{exp1} );1128 return 'do { for($_) ' . emit_block( $n->{exp1} ) . ' }'; 1120 1129 } 1121 1130 if ( $n->{statement} eq 'given' ) {
