Parrot::Ops2pm::Utils contains methods holding functionality for tools/build/ops2pm.pl.
SYNOPSIS
use Parrot::Ops2pm::Utils;
$self = Parrot::Ops2pm::Utils->new( {
argv => [ @ARGV ],
nolines => $nolines_flag,
renum => $renum_flag,
moddir => "lib/Parrot/OpLib",
module => "core.pm",
inc_dir => "include/parrot/oplib",
inc_f => "ops.h",
script => "tools/build/ops2pm.pl",
} );
$self->prepare_ops();
if ($renum_flag) {
$self->renum_op_map_file();
exit 0;
}
$self->load_op_map_files();
$self->sort_ops();
$self->prepare_real_ops();
$self->print_module();
$self->print_h();
exit 0;
Parrot::Ops2pm::Utils provides methods called by tools/build/ops2pm.pl, a program which is called at the very beginning of the Parrot make process. The program's function is to build two files:
lib/Parrot/OpLib/core.pm
include/parrot/oplib/ops.h
The functionality originally found in tools/build/ops2pm.pl has been extracted into this package's methods in order to support component-focused testing and future refactoring.
Product's homepage
Requirements:
· Perl