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

Commit

Permalink
add ...
Browse files Browse the repository at this point in the history
  • Loading branch information
cotto committed Jan 4, 2011
1 parent 01081a8 commit 89a7459
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/NQP/Actions.pm
Original file line number Diff line number Diff line change
Expand Up @@ -311,6 +311,10 @@ method term:sym<regex_declarator>($/) { make $<regex_declarator>.ast; }
method term:sym<statement_prefix>($/) { make $<statement_prefix>.ast; }
method term:sym<lambda>($/) { make $<pblock>.ast; }

method term:sym<...>($/) {
make PAST::Op.new( :pirop('die'), 'Stub code executed', :node($/) );
}

method fatarrow($/) {
my $past := $<val>.ast;
$past.named( $<key>.Str );
Expand Down
1 change: 1 addition & 0 deletions src/NQP/Grammar.pm
Original file line number Diff line number Diff line change
Expand Up @@ -232,6 +232,7 @@ token term:sym<multi_declarator> { <?before 'multi'|'proto'|'only'> <multi_dec
token term:sym<regex_declarator> { <regex_declarator> }
token term:sym<statement_prefix> { <statement_prefix> }
token term:sym<lambda> { <?lambda> <pblock> }
token term:sym<...> { <sym> <args>? }

token fatarrow {
<key=.identifier> \h* '=>' <.ws> <val=.EXPR('i=')>
Expand Down

0 comments on commit 89a7459

Please sign in to comment.