Colin Paul Adams wrote:
Autrijus> my $return_str = Parrot_call_sub( $interp, Autrijus> $code_pmc, const_string("SS"), Autrijus> const_string("Your_input_string_here"), );
I'm confused by this - what language is it written in? Perl?
APL: Autrijus' Pseudocde Language
And will:
Parrot_PackFile Parrot_readbc(Parrot_Interp, char *filename)
Reads in a bytecode file and returns a packfile structure for it.
accept a .pir file?
No, but Parrot_load_bytecode(Interp*, const char*) will do, see the C<load_bytecode> opcode.
leo