Parrot::Opcode - Read opcode definitions
use Parrot::Opcode; %opcodes = Parrot::Opcode::read_ops();
The read_ops() function parses the Parrot opcode_table file, and returns the contents as a hash. The hash key is the opcode name; values are hashrefs containing the following fields:
The opcode number.
The opcode argument count.
The opcode argument types, as an arrayref.
The name of the C function implementing this op.
read_ops() takes an optional argument: the file to read the opcode table from.
The fingerprint() function returns a checksum for the opcode table. It is used to ensure that bytecode is only executed if it was generated for a version of parrot supporting the appropriate opcodes.
To install Test::More, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Test::More
CPAN shell
perl -MCPAN -e shell install Test::More
For more information on module installation, please visit the detailed CPAN module installation guide.