Hi,
I have a little problem with compiling perl6 programs with rakudo-star-2010.07:
# cat test.p6
say "Greetings, earthlings, err Perl 6 neophytes.";
# perl6 test.p6
Greetings, earthlings, err Perl 6 neophytes.
# perl6 --target=pir test.p6 >> test.pir
# parrot prog.pir
error:imcc:syntax error, unexpected PREG, expecting '(' ('$P67')
in file 'prog.pir' line 36
error:imcc:syntax error, unexpected PREG, expecting '(' ('$P69')
in file 'prog.pir' line 40
error:imcc:syntax error, unexpected PREG, expecting '(' ('$P71')
in file 'prog.pir' line 44
error:imcc:syntax error, unexpected PREG, expecting '(' ('$P1')
in file 'prog.pir' line 64
error:imcc:syntax error ... somewhere
in file 'prog.pir' line 103
# echo ".loadlib 'perl6_group'" > test.pir
# echo ".loadlib 'perl6_ops'" >> test.pir
# perl6 --target=pir test.p6 >> test.pir
# parrot prog.pir
Could not find sub !UNIT_OUTER
current instr.: '' pc 158 (prog.pir:81) (prog.p6:1)
Is it a known bug? ;) Why compiling a simple perl6 program is so dificult?