Created
May 14, 2012 15:25
-
-
Save anonymous/2694566 to your computer and use it in GitHub Desktop.
Parrot - #276
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 main :main | |
$P0 = get_class 'Sub' | |
$P1 = subclass $P0, 'myProc' | |
.local pmc pirC | |
pirC = compreg 'PIR' | |
.local string code | |
code = <<"END_CODE" | |
.sub bar | |
say "hi" | |
.end | |
END_CODE | |
.end | |
# Local Variables: | |
# mode: pir | |
# fill-column: 100 | |
# End: | |
# vim: expandtab shiftwidth=4 ft=pir: | |
Output: | |
--------------- | |
error:imcc:syntax error, unexpected $end | |
in file 'foo.pir' line 18 | |
current instr.: '__default_get_packfile' pc 408 (frontend/parrot2/prt0.pir:151) | |
------ | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment