NAME ^

Parrot::PakFile2 - XS interface to writing Parrot bytecode files

SYNOPSIS ^

    use Parrot::PakFile2;
    open (OUT, ">foo.pbc") or die $!;
  
    Parrot::PakFile2::output_bytecode(
    {
        bytecode => $gibberish,
        constants => [
            [ "N", 123.4567 ],
            [ "S", "Hello world" ],
            ...
        ]
    }

DESCRIPTION ^

This is a very simple XS wrapper which creates a struct PackFile suitable for passing to PackFile_pack, in turn generating a Parrot bytecode file. Be warned that it is very precise in its expectation of your input.

HISTORY ^

Author: Simon Cozens, simon@cpan.org


parrot