| parrotcode: PMC to C Code Generation | |
| Contents | Perl Modules |

Parrot::Pmc2c - PMC to C Code Generation

use Parrot::Pmc2c;

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


new($self, $opt)$self as a new instance.$self is a hash reference eval-ed from a *.dump file generated by tools/build/pmc2c.pl from a *.pmc file. It is bless-ed either into Parrot::Pmc2c::Standard, or into one of the other special PMCs: default, delegate, Null, Ref or SharedRef.$opt is a hash reference.
does_write($method)$method writes our value.line_directive($self,$line,$file)$self-{opt}{nolines}> is true.line_directive_here($self,$output,$file)make_constlike($type, $is_variant)make_const()const_too flag set then this method is called in init() to to create the read-only set methods.make_ro()const_too set (FIXME?) then this method is called to create the read-only set methods and vtable variant.init()decl($classname, $method, $for_header)$for_header indicates whether the code is for a header or implementation file.includes()#include for the header file of each of the PMC's superclasses.full_arguments($args)INTERP, SELF to $args.proto($type,$parameters)rewrite_nci_method($class, $method, $super, $super_table)rewrite_vtable_method($class, $method, $super, $super_table)body($method, $line, $out_name)$line is used to accumulate the number of lines, $out_name is the name of the output file we are generating.methods($line, $out_name)$line is used to accumulate the number of lines, $out_name is the name of the output file we are generating.pmc_is_dynpmcfind_mmd_methods()[index, dynamic PMC] pairs of right entries in the MMD table that will need to be resolved at runtime.find_vtable_methods()vtable_decl($name)$name with the functions for this class.init_func()no_init flag.gen_c($out_name)$out_name is the name of the output file we are generating.hdecls()gen_h($out_name)$out_name is the name of the output file we are generating.implements($method)$method.implements_vtable($method)$method.
|
|
|