Changeset 6569
- Timestamp:
- 08/29/05 22:59:00 (3 years ago)
- Files:
-
- 15 modified
-
lib/pugs/hack.pod (modified) (2 diffs)
-
perl5/PIL2JS/lib/PIL.pm (modified) (1 diff)
-
perl5/PIL2JS/lib6/Prelude/JS/Operators.pm (modified) (1 diff)
-
perl5/PIL2JS/lib6/Prelude/JS/Rules.pm (modified) (3 diffs)
-
perl5/PIL2JS/libjs/PIL2JS.js (modified) (2 diffs)
-
perl5/PIL2JS/pil2js.pl (modified) (1 diff)
-
perl5/PIL2JS/runjs.pl (modified) (1 diff)
-
t/rules/perl5.t (modified) (1 diff)
-
t/rules/rules_refs.t (modified) (1 diff)
-
t/rules/rx_perl5_escape.t (modified) (1 diff)
-
t/rules/rx_perl5_g.t (modified) (1 diff)
-
t/rules/rx_perl5_match.t (modified) (1 diff)
-
t/rules/s_perl5.t (modified) (2 diffs)
-
t/rules/variable_interpolation.t (modified) (1 diff)
-
t/var/refs_point_to_containers.t (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
lib/pugs/hack.pod
r6531 r6569 260 260 =back 261 261 262 263 262 =head2 Editing 264 263 265 264 There is a F<util/perl6.vim> Vim syntax file. There is no emacs mode yet, 266 265 but perl-mode works better than cperl-mode. 267 268 266 269 267 =head2 Testing … … 294 292 =over 295 293 296 =item * 297 298 L<http://www-users.cs.york.ac.uk/~ndm/hoogle/> A cross index of 299 standard Haskell libraries. It is searchable by type signature, name, 300 etc. 301 302 =item * 303 304 L<http://rt.openfoundry.org/Foundry/Project/Source/index.html/pugs/browse/> 305 Browsable Pugs vcs. You sometimes get a blank page the first time you 306 access a URL (a timeout) - just click again. 307 308 =item * 309 310 L<http://svn.perl.org/perl6/pugs/trunk/> Mirror of Pugs vcs head. 311 Usually faster and more reliable than the openfoundry browser. 294 =item L<http://www-users.cs.york.ac.uk/~ndm/hoogle/> 295 296 A cross index of standard Haskell libraries. It is searchable by type 297 signature, name, etc. 298 299 =item L<http://rt.openfoundry.org/Foundry/Project/Source/index.html/pugs/browse/> 300 301 Browsable Pugs VCS. You sometimes get a blank page the first time you access a 302 URL (a timeout) - just click again. 303 304 =item L<http://svn.perl.org/perl6/pugs/trunk/> 305 306 Mirror of Pugs VCS head. Usually faster and more reliable than the OpenFoundry 307 browser, but doesn't show diffs between revisions. 308 309 =item L<http://m19s28.vlinux.de/cgi-bin/pugs-smokeserv.pl> 310 311 Pugs Smoke Reports Server. List of recently uploaded smoke reports sorted by 312 the runcore used (normal Haskell backend, PIL2JS, PIL-Run, PIR, etc.), see 313 F<util/smokeserv/README> for more information. 312 314 313 315 =back -
perl5/PIL2JS/lib/PIL.pm
r6527 r6569 223 223 join("\n", map { 224 224 my $name = $_->{pSubName}; 225 $name =~ /^(?:__init_|__export_ )/ && $name !~ /import$/226 ? sprintf("PIL2JS.cps2normal(%s.FETCH(), [PIL2JS.Context.Void]);", PIL::name_mangle $name)225 $name =~ /^(?:__init_|__export_|&PIL2JS::Internals::Hacks::init)/ && $name !~ /import$/ 226 ? sprintf("PIL2JS.cps2normal(%s.FETCH(), [PIL2JS.Context.Void]);", PIL::name_mangle($name)) 227 227 : (); 228 228 } @{ $fixed_tree->{"pilGlob" } }) . -
perl5/PIL2JS/lib6/Prelude/JS/Operators.pm
r6526 r6569 51 51 \}"; 52 52 53 # XXX! HACK!See the end of Prelude::JS for explanation.53 # XXX! minor hack. See the end of Prelude::JS for explanation. 54 54 my $args = $arity == 1 ?? '?$__a = $CALLER::_' :: '$__a, $__b'; 55 55 my $c = $type eq "S" ?? "~" :: "+"; -
perl5/PIL2JS/lib6/Prelude/JS/Rules.pm
r6563 r6569 43 43 if !@ret { 44 44 my $m = $new_match(?0); 45 #my $m = Match.new(0,"",[],undef,undef); 46 # $/ = $m; 45 $/ := $m; 47 46 } elsif $global { 48 47 # XXX - unfinished … … 52 51 my @m_as_array = @ret; 53 52 my $to = $from + $m_as_str.chars; 54 my $m = $new_match(?1, $from, $to, $m_as_str, @m_as_array, []); # $/ = $m; 53 my $m = $new_match(?1, $from, $to, $m_as_str, @m_as_array, []); 54 $/ := $m; 55 55 } 56 56 }; … … 72 72 } 73 73 74 # Needs PIL2 and MMD to be done without hacks 75 sub PIL2JS::Internals::Hacks::postcircumfix_for_match_objects ( 76 Match $match, Int *@idxs 77 ) is primitive { 78 $match.subpos[*@idxs]; 79 } 80 81 sub PIL2JS::Internals::Hacks::init_match_postcircumfix_method () is primitive { 82 JS::inline('(function () { 83 PIL2JS.addmethod( 84 _3amain_3a_3aMatch, 85 "postcircumfix:[]", 86 _26PIL2JS_3a_3aInternals_3a_3aHacks_3a_3apostcircumfix_for_match_objects 87 ); 88 })')(); 89 } 90 74 91 # $0 etc. are aliases for $/[0] etc. -
perl5/PIL2JS/libjs/PIL2JS.js
r6563 r6569 672 672 var _24main_3a_3a_3fPUGS_BACKEND = new PIL2JS.Box.Constant("BACKEND_JAVASCRIPT"); 673 673 var _24main_3a_3a_ = new PIL2JS.Box(undefined); 674 // $/ -- XXX WRONG needs to be lexical 675 var _24main_3a_3a_2f = new PIL2JS.Box(undefined); 674 676 // Stub for $?CALLER::CALLER::POSITION, so Test.pm doesn't die on a failed 675 677 // test. … … 960 962 type == cmptype || 961 963 type == "Array" && cmptype == "List" || 964 // Hacks: 965 type == "Num" && cmptype == "Int" || 966 type == "Num" && cmptype == "Rat" || 962 967 type == "Any" 963 968 )); -
perl5/PIL2JS/pil2js.pl
r6518 r6569 12 12 require BSD::Resource; 13 13 import BSD::Resource; 14 setrlimit(RLIMIT_CPU(), 35, 45) or die "Couldn't setrlimit: $!\n";14 setrlimit(RLIMIT_CPU(), 43, 45) or die "Couldn't setrlimit: $!\n"; 15 15 warn "*** Limited CPU resources.\n"; 16 16 } -
perl5/PIL2JS/runjs.pl
r6547 r6569 15 15 require BSD::Resource; 16 16 import BSD::Resource; 17 setrlimit(RLIMIT_CPU(), 35, 45) or die "Couldn't setrlimit: $!\n";17 setrlimit(RLIMIT_CPU(), 43, 45) or die "Couldn't setrlimit: $!\n"; 18 18 warn "*** Limited CPU resources.\n"; 19 19 } -
t/rules/perl5.t
r6119 r6569 6 6 plan 882; 7 7 8 if(!eval('("a" ~~ rx:P5/a/)')){8 unless "a" ~~ rx:P5/a/ { 9 9 skip_rest "skipped tests - P5 regex support appears to be missing"; 10 10 exit; -
t/rules/rules_refs.t
r6534 r6569 12 12 =cut 13 13 14 if(!eval('("a" ~~ rx:P5/a/)')){14 unless "a" ~~ rx:P5/a/ { 15 15 skip_rest "skipped tests - P5 regex support appears to be missing"; 16 16 exit; -
t/rules/rx_perl5_escape.t
r6534 r6569 6 6 plan 1; 7 7 8 if(!eval('("a" ~~ rx:P5/a/)')){8 unless "a" ~~ rx:P5/a/ { 9 9 skip_rest "skipped tests - P5 regex support appears to be missing"; 10 10 exit; -
t/rules/rx_perl5_g.t
r6534 r6569 6 6 plan 4; 7 7 8 if(!eval('("a" ~~ rx:P5/a/)')){8 unless "a" ~~ rx:P5/a/ { 9 9 skip_rest "skipped tests - P5 regex support appears to be missing"; 10 10 exit; -
t/rules/rx_perl5_match.t
r6534 r6569 21 21 =cut 22 22 23 if(!eval('("a" ~~ rx:P5/a/)')){23 unless "a" ~~ rx:P5/a/ { 24 24 skip_rest "skipped tests - P5 regex support appears to be missing"; 25 25 exit; -
t/rules/s_perl5.t
r6534 r6569 14 14 =cut 15 15 16 if(!eval('("a" ~~ rx:P5/a/)')){16 unless "a" ~~ rx:P5/a/ { 17 17 skip_rest "skipped tests - P5 regex support appears to be missing"; 18 18 exit; … … 22 22 $foo ~~ s:perl5{f}{b}; 23 23 is($foo, "boo", 'substitute regexp works'); 24 unless $foo eq "boo" { 25 skip_rest "Skipping test which depend on a previous failed test"; 26 } 24 27 25 28 my $bar = "barrrr"; -
t/rules/variable_interpolation.t
r6534 r6569 6 6 plan 5; 7 7 8 if(!eval('("a" ~~ rx:P5/a/)')){8 unless "a" ~~ rx:P5/a/ { 9 9 skip_rest "skipped tests - P5 regex support appears to be missing"; 10 10 exit; -
t/var/refs_point_to_containers.t
r6397 r6569 51 51 { 52 52 my $arrayref = [1,2,3]; 53 my $test = sub (@array ) {53 my $test = sub (@array is rw) { 54 54 is @array[1], 2, "automatically dereffed arrays"; 55 55
