NAME

Parrot::OpsRenumber - Methods holding functionality for tools/build/opsrenumber.pl.

SYNOPSIS

use Parrot::Config qw( %PConfig );
use Parrot::OpsRenumber;

$self = Parrot::OpsRenumber->new( {
    argv            => [ @ARGV ],
    nolines         => $nolines_flag,
    moddir          => "lib/Parrot/OpLib",
    module          => "core.pm",
    inc_dir         => "include/parrot/oplib",
    inc_f           => "ops.h",
    script          => "tools/build/opsrenumber.pl",
} );

$self->prepare_ops();
$self->renum_op_map_file( $PConfig{MAJOR} );

DESCRIPTION

Parrot::OpsRenumber provides methods called by tools/dev/opsrenumber.pl.

METHODS

new()

Inherited from Parrot::Ops2pm::Base and documented in lib/Parrot/Ops2pm/Base.pm.

prepare_ops()

Inherited from Parrot::Ops2pm::Base and documented in lib/Parrot/Ops2pm/Base.pm.

renum_op_map_file()

  • Purpose

    This method renumbers src/ops/ops.num based on the already existing file of that name and additional .ops files.

  • Arguments

    Two scalars. First is Parrot major version number. Second is optional: string holding name of an .ops file; defaults to src/ops/ops.num. (Implicitly requires that the argv and script elements were provided to the constructor.)

  • Return Value

    Returns true value upon success.