Skip to content

Commit

Permalink
Make throw at least partially work.
Browse files Browse the repository at this point in the history
  • Loading branch information
tcurtis committed Jul 20, 2010
1 parent 5fc0d2e commit e7a406f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
4 changes: 1 addition & 3 deletions doc/tutorial_episode_4.pod
Expand Up @@ -189,11 +189,9 @@ representing the "throw" instruction.

method statement:sym<throw>($/) {
make PAST::Op.new( $<EXPR>.ast,
:pirop('throw'),
:pirop('die'),
:node($/) );
}
TODO(replace this with something that works)


=head2 What's Next?

Expand Down
2 changes: 1 addition & 1 deletion src/Squaak/Actions.pm
Expand Up @@ -173,7 +173,7 @@ method arguments($/) {

method statement:sym<throw>($/) {
make PAST::Op.new( $<EXPR>.ast,
:pirop('throw'),
:pirop('die'),
:node($/) );
}

Expand Down

0 comments on commit e7a406f

Please sign in to comment.