Skip to content
This repository has been archived by the owner on Feb 3, 2021. It is now read-only.

Commit

Permalink
Browse files Browse the repository at this point in the history
Include a '&' on operator names by default.
  • Loading branch information
pmichaud committed Oct 31, 2009
1 parent d35a707 commit 2e786f4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/HLL/Actions.pm
Expand Up @@ -81,7 +81,7 @@ method EXPR($/, $key?) {
$S0 = downcase $S0
%r = box $S0
} ~ ':<' ~ $<OPER><sym> ~ '>';
$past.name($name);
$past.name('&' ~ $name);
}
}
if $key eq 'POSTFIX' { $past.unshift($/[0].ast); }
Expand Down
2 changes: 1 addition & 1 deletion src/NQP/Actions.pm
Expand Up @@ -481,7 +481,7 @@ method arglist($/) {
my $past := PAST::Op.new( :pasttype('call'), :node($/) );
if $<EXPR> {
my $expr := $<EXPR>.ast;
if $expr.name eq 'infix:<,>' && !$expr.named {
if $expr.name eq '&infix:<,>' && !$expr.named {
for $expr.list { $past.push($_); }
}
else { $past.push($expr); }
Expand Down

0 comments on commit 2e786f4

Please sign in to comment.