parrotcode: XS interface to writing Parrot bytecode files | |
Contents | Perl Modules |
Parrot::PakFile2 - XS interface to writing Parrot bytecode files
use Parrot::PakFile2;
open (OUT, ">foo.pbc") or die $!;
Parrot::PakFile2::output_bytecode(
{
bytecode => $gibberish,
constants => [
[ "N", 123.4567 ],
[ "S", "Hello world" ],
...
]
}
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.
Author: Simon Cozens, simon@cpan.org
|