Permalink
Browse files

add ...

  • Loading branch information...
1 parent 01081a8 commit 89a7459bf15f084f034b4572e3121833f22aa6e3 @cotto cotto committed Aug 2, 2010
Showing with 5 additions and 0 deletions.
  1. +4 −0 src/NQP/Actions.pm
  2. +1 −0 src/NQP/Grammar.pm
View
@@ -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 );
View
@@ -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=')>

0 comments on commit 89a7459

Please sign in to comment.