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

Commit

Permalink
Browse files Browse the repository at this point in the history
remove un-perly fatarrow extension
  • Loading branch information
perlpilot committed Mar 25, 2010
1 parent f34ed51 commit becd0e9
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 26 deletions.
3 changes: 1 addition & 2 deletions src/NQP/Actions.pm
Expand Up @@ -280,8 +280,7 @@ method term:sym<lambda>($/) { make $<pblock>.ast; }

method fatarrow($/) {
my $past := $<val>.ast;
my $name := ?$<quote> ?? $<key>.ast !! $<key>.Str;
$past.named( $name );
$past.named( $<key>.Str );
make $past;
}

Expand Down
4 changes: 1 addition & 3 deletions src/NQP/Grammar.pm
Expand Up @@ -224,9 +224,7 @@ token term:sym<statement_prefix> { <statement_prefix> }
token term:sym<lambda> { <?lambda> <pblock> }

token fatarrow {
| <key=.identifier> \h* '=>' <.ws> <val=.EXPR('i=')>
| $<quote>=<?[']> <key=.quote_EXPR: ':q'> \h* '=>' <.ws> <val=.EXPR('i=')>
| $<quote>=<?["]> <key=.quote_EXPR: ':qq'> \h* '=>' <.ws> <val=.EXPR('i=')>
<key=.identifier> \h* '=>' <.ws> <val=.EXPR('i=')>
}

token colonpair {
Expand Down
21 changes: 0 additions & 21 deletions t/nqp/47-fatarrow.t

This file was deleted.

0 comments on commit becd0e9

Please sign in to comment.