Parrot::Vtable - Functions for manipulating vtables
use Parrot::Vtable;
Parrot::Vtable provides a collection of functions for manipulating PMC vtables. It is used by build_tools/jit2h.pl, build_tools/pmc2c.pl, build_tools/vtable_h.pl, classes/genclass.pl, and classes/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 ]
for each vtable method defined in $file. If $file is unspecified it defaults to vtable.tbl.
$file
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
1;
To install Ruby, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Ruby
CPAN shell
perl -MCPAN -e shell install Ruby
For more information on module installation, please visit the detailed CPAN module installation guide.