Changeset 21601 for perl5

Show
Ignore:
Timestamp:
07/28/08 22:47:27 (5 months ago)
Author:
fglock
Message:

[v6.pm] more operators

Location:
perl5/Pugs-Compiler-Perl6/lib/Pugs/Grammar
Files:
3 modified

Legend:

Unmodified
Added
Removed
  • perl5/Pugs-Compiler-Perl6/lib/Pugs/Grammar/Expression.pm

    r21600 r21601  
    456456        $m = undef; 
    457457        if ( $m1 && $m2 ) { 
    458             if ( exists $m2->()->{bare_sigil} && $m2->tail =~ /^[\,\)]/ ) { 
     458            if ( exists $m2->()->{bare_sigil} && $m2->tail =~ /^\s*[\,\)\}\]]/ ) { 
    459459                $m = $m2 
    460460            } 
  • perl5/Pugs-Compiler-Perl6/lib/Pugs/Grammar/Infix.pm

    r19287 r21601  
    110110        other => '||', 
    111111    ); 
    112     __PACKAGE__->add_same_precedence_ops({ assoc => 'right'}, qw(= := ::= => += -= **= xx= x= .= ~= =~) ); 
    113  
    114  
     112    __PACKAGE__->add_same_precedence_ops({ assoc => 'right'}, qw( 
     113        = := ::= => += -=  
     114        *= **=  
     115        /= //=  
     116        %=  
     117        xx= x= .= ~= =~  
     118        ^= ^^= +^= ~^= ?^=  
     119        &= &&= +&= ~&= ?&=  
     120        |= ||= +|= ~|= ?|=  
     121    ) ); 
    115122    __PACKAGE__->add_rule(  
    116123        name => 'Z', 
  • perl5/Pugs-Compiler-Perl6/lib/Pugs/Grammar/Term.pm

    r21600 r21601  
    355355                { return { code  => "\&" . $_[0]->() ,} } 
    356356              | { return { bare_sigil => '&' ,} } 
     357            ), 
     358        '*' => q( 
     359                { return { bare_sigil => '*' ,} } 
    357360            ), 
    358361        '(' => q(