Skip to content

Commit

Permalink
$(...) -> .ast in Ep 6.
Browse files Browse the repository at this point in the history
  • Loading branch information
tcurtis committed Jul 19, 2010
1 parent 6133e26 commit abe0ce4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions doc/tutorial_episode_6.pod
Expand Up @@ -187,16 +187,16 @@ the subroutines in an array or hash field, and invoke them from there. Let's
take a look at the action method, which is really quite straightforward.

method sub_call($/) {
my $invocant := $( $<primary> );
my $past := $( $<arguments> );
my $invocant := $<primary>.ast;
my $past := $<arguments>.ast;
$past.unshift($invocant);
make $past;
}

method arguments($/) {
my $past := PAST::Op.new( :pasttype('call'), :node($/) );
for $<expression> {
$past.push( $( $_ ) );
$past.push($_.ast);
}
make $past;
}
Expand Down

0 comments on commit abe0ce4

Please sign in to comment.