Skip to content

Instantly share code, notes, and snippets.

Created May 14, 2012 15:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/2694566 to your computer and use it in GitHub Desktop.
Save anonymous/2694566 to your computer and use it in GitHub Desktop.
Parrot - #276
.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