NAME
Parrot::Pmc2c::PMCEmitter - PMC to C Code Generation
SYNOPSIS
use Parrot::Pmc2c::PMCEmitter;
DESCRIPTION
Parrot::Pmc2c::PMCEmitter
is used by tools/build/pmc2c.pl to generate C code from PMC files.
Functions
generate_c_file()
Generates the C implementation file code for the PMC.
generate_h_file()
Generates the C header file code for the PMC.
hdecls()
Returns the C code function declarations for all the methods for inclusion in the PMC's C header file.
Instance Methods
init()
Initializes the instance.
gen_includes()
Returns the C proto($type,$parameters)
Determines the prototype (argument signature) for a method body (see src/call_list).
gen_methods()
Returns the C code for the pmc methods.
gen_attributes()
Returns the C code for the attribute struct definition.
find_multi_functions()
Returns an arrayref of MULTI function names declared in the PMC. Used to initialize the multiple dispatch function list.
vtable_decl($name)
Returns the C code for the declaration of a vtable temporary named init_func()
Returns the C code for the PMC's initialization method, or an empty string if the PMC has a
#include
for the header file of each of the PMC's superclasses.
$name
with the functions for this class.
no_init
flag.