Created
May 29, 2009 19:19
-
-
Save treed/120151 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
.sub 'new' :method | |
.param int mei :named('mei') :optional | |
.param pmc args :slurpy | |
.local pmc iter, bridi | |
.local string selbri | |
selbri = typeof self | |
bridi = new selbri | |
bridi.'set_selbri'(selbri) | |
$P0 = new 'ResizablePMCArray' | |
bridi.'set_terbri'($P0) | |
iter = new 'Iterator', args | |
iter_loop: | |
unless iter goto iter_end | |
$P1 = shift iter | |
bridi.'add_terbri'($P1) | |
goto iter_loop | |
iter_end: | |
if mei goto mei_set # LINE 31 | |
mei = 0 | |
mei_set: | |
setattribute bridi, 'mei', mei | |
bridi.'go'() | |
.return (bridi) | |
.end |
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
[11:53] [inara:/Users/treed/code/mekso]% make | |
/Users/treed/code/parrot/parrot -o mekso.pbc mekso.pir | |
error:imcc:syntax error, unexpected PARROT_OP ('setattribute') | |
in file 'src/classes/bridi.pir' line 31 | |
included from 'src/gen_builtins.pir' line 70 | |
included from 'mekso.pir' line 1 | |
make: *** [mekso.pbc] Error 1 | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment