NAME

Parrot::Pmc2c - PMC to C Code Generation

SYNOPSIS

    use Parrot::Pmc2c;

DESCRIPTION

Parrot::Pmc2c is used by tools/build/pmc2c.pl to generate C code from PMC files.

Functions

generate_body($pmc)
Generate and emit the C code for the method body.
decl($classname, $method, $for_header)
Returns the C code for the PMC method declaration. $for_header indicates whether the code is for a header or implementation file.
proto($type,$parameters)
Determines the prototype (argument signature) for a method body (see src/call_list).
rewrite_nci_method($self, $pmc )
Rewrites the method body performing the various macro substitutions for nci method bodies (see tools/build/pmc2c.pl).
rewrite_vtable_method($self, $pmc, $super, $super_table)
Rewrites the method body performing the various macro substitutions for vtable method bodies (see tools/build/pmc2c.pl).
full_arguments($args)
Prepends INTERP, SELF to $args.