Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fix array and hash indexing; wins back some more tests.
  • Loading branch information
jnthn committed Aug 7, 2012
1 parent 207256a commit 90adf5a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/NQPQ/Actions.pm
Expand Up @@ -1337,15 +1337,15 @@ class NQP::Actions is HLL::Actions {
method semilist($/) { make $<statement>.ast }

method postcircumfix:sym<[ ]>($/) {
make QAST::Op.new( :op('atpos'), $<EXPR>.ast );
make QAST::Var.new( :scope('positional'), $<EXPR>.ast );
}

method postcircumfix:sym<{ }>($/) {
make QAST::Op.new( :op('atkey'), $<EXPR>.ast );
make QAST::Var.new( :scope('associative'), $<EXPR>.ast );
}

method postcircumfix:sym<ang>($/) {
make QAST::Op.new( :op('atkey'), $<quote_EXPR>.ast );
make QAST::Var.new( :scope('associative'), $<quote_EXPR>.ast );
}

method postcircumfix:sym<( )>($/) {
Expand Down

0 comments on commit 90adf5a

Please sign in to comment.