diff --git a/src/NQP/Actions.pm b/src/NQP/Actions.pm index d3a36b0..1c1203b 100644 --- a/src/NQP/Actions.pm +++ b/src/NQP/Actions.pm @@ -162,16 +162,6 @@ method statement_control:sym($/) { make PAST::Op.new( $.ast, :pasttype('return'), :node($/) ); } -method statement_control:sym($/) { - make PAST::Op.new( - PAST::Var.new( :name('$/'), :scope('contextual') ), - $.ast, - :pasttype('callmethod'), - :name('!make'), - :node($/) - ); -} - method statement_prefix:sym($/) { @BLOCK[0].loadinit.push($.ast); make PAST::Stmts.new(:node($/)); diff --git a/src/NQP/Grammar.pm b/src/NQP/Grammar.pm index 68d015f..ec553be 100644 --- a/src/NQP/Grammar.pm +++ b/src/NQP/Grammar.pm @@ -165,16 +165,6 @@ token statement_control:sym { } -#token statement_control:sym { -# :s -# [ || <.panic: 'return requires an expression argument'> ] -#} -# -#token statement_control:sym { -# :s -# [ || <.panic: 'make requires an expression argument'> ] -#} - proto token statement_prefix { <...> } token statement_prefix:sym { }