Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
support @() and %() shortcuts
  • Loading branch information
FROGGS committed Sep 24, 2013
1 parent f4a21d6 commit 7e2d8bc
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/Perl6/Actions.nqp
Expand Up @@ -1504,6 +1504,9 @@ class Perl6::Actions is HLL::Actions does STDActions {
my $name := ~$<sigil> eq '@' ?? 'list' !!
~$<sigil> eq '%' ?? 'hash' !!
'item';
# @() and %()
$past := QAST::Var.new( :name('$/'), :scope('lexical') ) if ~$<semilist> eq '';

$past := QAST::Op.new( :op('callmethod'), :name($name), $past );
}
}
Expand Down

0 comments on commit 7e2d8bc

Please sign in to comment.