NAME ^

tools/dev/gen_class.pl - Create a template PMC file

SYNOPSIS ^

    % perl tools/dev/gen_class.pl Foo > src/pmc/Foo.pmc

DESCRIPTION ^

Use this script to generate a template PMC file with stubs for all the methods you need to fill in. See docs/vtables.pod for more information on adding a new PMC to Parrot.

To see what a minimal PMC looks like, create a PMC template and compile it to C.

    % perl tools/dev/gen_class.pl Foo > src/pmc/foo.pmc
    % perl tools/build/pmc2c.pl --dump src/pmc/foo.pmc
    % perl tools/build/pmc2c.pl -c src/pmc/foo.pmc

SEE ALSO ^

tools/build/pmc2c.pl, docs/vtables.pod.


parrot