Skip to content

Instantly share code, notes, and snippets.

Created August 7, 2010 12:55
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/512785 to your computer and use it in GitHub Desktop.
Save anonymous/512785 to your computer and use it in GitHub Desktop.
Inside src/Perl6/Compiler.pir
.sub 'main' :main
.param pmc args_str
# Fire any of the setting's INIT phasers before we enter the runloop, so
# e.g. $*OUT is available to the actual code's BEGIN blocks.
say "from inside main"
'!fire_phasers'('INIT')
$P0 = compreg 'perl6'
$P1 = $P0.'command_line'(args_str, 'encoding'=>'utf8', 'transcode'=>'ascii iso-8859-1')
'!fire_phasers'('END')
exit 0
.end
Build fails with error...
/home/mak/UserArea/Perl6/current_dev_snapshot/rakudo/parrot_install/bin/parrot -o perl6.pbc src/Perl6/Compiler.pir
error:imcc:syntax error, unexpected IDENTIFIER, expecting $end ('from')
in file 'src/gen/core.pir' line 272
included from 'src/Perl6/Compiler.pir' line 1
error:imcc:syntax error ... somewhere
in file 'src/gen/core.pir' line 272
included from 'src/Perl6/Compiler.pir' line 1
make: *** [perl6.pbc] Error 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment