Legend:
- Unmodified
- Added
- Removed
-
src/perl6/STD.pm
r22002 r22005 154 154 say print open close printf sprintf slurp unlink link symlink 155 155 elems grep map first reduce sort push reverse take splice 156 exists delete157 156 158 157 zip each roundrobin caller … … 180 179 push @routinenames, "HOW", "fail", "temp", "let"; 181 180 182 # if True ref False unlesslength bless delete exists181 # please don't add: ref length bless delete exists 183 182 184 183 my %routinenames; … … 458 457 459 458 token ws { 460 # XXX exists is a p5ism 461 :my @stub = return self if exists self.<_>[self.pos]<ws>; 459 :my @stub = return self if self.<_>[self.pos].:exists<ws>; 462 460 :my $startpos = self.pos; 463 461 … … 3313 3311 # hopefully we can include these tokens in any outer LTM matcher 3314 3312 regex stdstopper { 3315 :my @stub = return self if exists self.<_>[self.pos]<endstmt>;3313 :my @stub = return self if self.<_>[self.pos].:exists<endstmt>; 3316 3314 [ 3317 3315 | <?terminator> … … 3975 3973 token in (Str $stop, Str $insides, Str $name = $insides) { 3976 3974 :my $GOAL is context = $stop; 3977 <x=$insides> $stop {{ $/.{$insides} = $<x>; delete $<x> }} || <.panic: "Unable to parse $name; couldn't find final '$stop'">3975 <x=$insides> $stop {{ $/.{$insides} = $<x>; $/.:delete<x> }} || <.panic: "Unable to parse $name; couldn't find final '$stop'"> 3978 3976 } 3979 3977 -
src/perl6/gimme5
r21975 r22005 80 80 $f =~ s/\\x([0-9a-fA-F]{3,4})/\\x{$1}/g; 81 81 $f =~ s!\$([0-9]+)!\$\$C{$1}!g; 82 $f =~ s/(\S+\.):(exists|delete)/$2 $1/g if $f =~ /\.:(exists|delete)/; 82 83 while ($f ne "") { 83 84 #print "$f\n" if $trace;
