Parrot::Vtable - Functions for manipulating vtables
use Parrot::Vtable;
Parrot::Vtable provides a collection of functions for manipulating PMC vtables. It is used by tools/build/jit2c.pl, tools/build/pmc2c.pl, tools/build/vtable_h.pl, tools/dev/gen_class.pl, and src/pmc/null.pl.
Parrot::Vtable
The following functions are exported:
parse_vtable($file)
Returns a reference to an array containing
[ return_type method_name parameters section MMD_type attributes ]
for each vtable method defined in $file. If $file is unspecified it defaults to vtable.tbl. If it is not an MMD method, MMD_type is -1.
$file
MMD_type
vtbl_defs($vtable)
Returns the C typedef definitions for the elements in the referenced vtable array.
typedef
vtbl_struct($vtable)
Returns the C struct definitions for the elements in the referenced vtable array.
struct
vtbl_macros($vtable)
Returns the C #define definitions for the elements in the referenced vtable array.
#define
vtbl_embed($vtable)
Returns the C function definitions to call the vtable methods on a PMC for the elements in the referenced vtable array.
%s %s(%s)
1 POD Error
The following errors were encountered while parsing the POD:
=over without closing =back
To install Parrot::Op, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Parrot::Op
CPAN shell
perl -MCPAN -e shell install Parrot::Op
For more information on module installation, please visit the detailed CPAN module installation guide.