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

Commit

Permalink
Remove obsolete regexes and methods for 'return'/'make'.
Browse files Browse the repository at this point in the history
  • Loading branch information
pmichaud committed Nov 14, 2009
1 parent 53fc7ad commit 710c598
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 20 deletions.
10 changes: 0 additions & 10 deletions src/NQP/Actions.pm
Expand Up @@ -162,16 +162,6 @@ method statement_control:sym<return>($/) {
make PAST::Op.new( $<EXPR>.ast, :pasttype('return'), :node($/) );
}

method statement_control:sym<make>($/) {
make PAST::Op.new(
PAST::Var.new( :name('$/'), :scope('contextual') ),
$<EXPR>.ast,
:pasttype('callmethod'),
:name('!make'),
:node($/)
);
}

method statement_prefix:sym<INIT>($/) {
@BLOCK[0].loadinit.push($<blorst>.ast);
make PAST::Stmts.new(:node($/));
Expand Down
10 changes: 0 additions & 10 deletions src/NQP/Grammar.pm
Expand Up @@ -165,16 +165,6 @@ token statement_control:sym<for> {
<xblock>
}

#token statement_control:sym<return> {
# <sym> :s
# [ <EXPR> || <.panic: 'return requires an expression argument'> ]
#}
#
#token statement_control:sym<make> {
# <sym> :s
# [ <EXPR> || <.panic: 'make requires an expression argument'> ]
#}

proto token statement_prefix { <...> }
token statement_prefix:sym<INIT> { <sym> <blorst> }

Expand Down

0 comments on commit 710c598

Please sign in to comment.