Skip to content

Commit

Permalink
Ep8: Exercise 1, hashtable keyed access.
Browse files Browse the repository at this point in the history
  • Loading branch information
tcurtis committed Jul 20, 2010
1 parent 660ddd0 commit 390e429
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions doc/tutorial_episode_8.pod
Original file line number Diff line number Diff line change
Expand Up @@ -306,13 +306,13 @@ Hint: use a C<PAST::Val> node for the string conversion.

=item 1

method key($/) {
my $key := $( $<expression> );
method postfix_expression:sym<key>($/) {
my $key := $<expression>.ast;

make PAST::Var.new( $key, :scope('keyed'),
:vivibase('Hash'),
:viviself('Undef'),
:node($/) );
make PAST::Var.new( $key, :scope('keyed'),
:vivibase('Hash'),
:viviself('Undef'),
:node($/) );
}

=item 2
Expand Down

0 comments on commit 390e429

Please sign in to comment.