Created
May 16, 2009 18:36
-
-
Save ruoso/112766 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
my $capture; | |
my $back; | |
my $interpreter; | |
my $name = $capture."positional"(1); | |
my $invocant = $capture."positional"(0); | |
my $exists = $invocant."exists"($name); | |
my $void; | |
my $ret; | |
if $exists {goto than} else {goto else}; | |
than: | |
$ret = $invocant."postcircumfix:{ }"($name); | |
$void = $back."setr"($ret); | |
$void = $interpreter."goto"($back); | |
else: | |
my $outer = $invocant."outer"(); | |
my $outer_true = $outer."true"(); | |
my $outer_cell = $outer."FETCH"(); | |
if $outer_true {goto than2} else {goto else2}; | |
than2: | |
$ret = $outer_cell."lookup"($name); | |
$void = $back."setr"($ret); | |
$void = $interpreter."goto"($back); | |
else2: | |
$void = $invocant."lookup_fail"($name); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment