Sophie

Sophie

distrib > Mandriva > 2010.0 > i586 > media > contrib-release > by-pkgid > cd14cddf3b3ceaf1193157472227757a > files > 382

parrot-doc-1.6.0-1mdv2010.0.i586.rpm

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <title>Parrot  - Create a template PMC file</title>
        <link rel="stylesheet" type="text/css"
            href="../../../resources/parrot.css"
            media="all">
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

    </head>
    <body>
        <div id="wrapper">
            <div id="header">

                <a href="http://www.parrot.org">
                <img border=0 src="../../../resources/parrot_logo.png" id="logo" alt="parrot">
                </a>
            </div> <!-- "header" -->
            <div id="divider"></div>
            <div id="mainbody">
                <div id="breadcrumb">
                    <a href="../../../html/index.html">Home</a> &raquo; <a href="../../../html/tools.html">Tools</a> &raquo; Create a template PMC file
                </div>

<h1><a name="NAME"
>NAME</a></h1>

<p>tools/dev/gen_class.pl &#45; Create a template PMC file</p>

<h1><a name="SYNOPSIS"
>SYNOPSIS</a></h1>

<pre>    % perl tools/dev/gen_class.pl Foo &#62; src/pmc/Foo.pmc</pre>

<h1><a name="DESCRIPTION"
>DESCRIPTION</a></h1>

<p>Use this script to generate a template PMC file with stubs for all the methods you need to fill in. See <em><a href="../../docs/vtables.pod.html">docs/vtables.pod</a></em> for more information on adding a new PMC to Parrot.</p>

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

<pre>    % perl tools/dev/gen_class.pl Foo &#62; src/pmc/foo.pmc
    % perl tools/build/pmc2c.pl &#45;&#45;dump src/pmc/foo.pmc
    % perl tools/build/pmc2c.pl &#45;c src/pmc/foo.pmc</pre>

<h1><a name="SEE_ALSO"
>SEE ALSO</a></h1>

<p><em><a href="../build/pmc2c.pl.html">tools/build/pmc2c.pl</a></em>, <em><a href="../../docs/vtables.pod.html">docs/vtables.pod</a></em>.</p>
            </div> <!-- "mainbody" -->
            <div id="divider"></div>
            <div id="footer">
	        Copyright &copy; 2002-2009, Parrot Foundation.
            </div>
        </div> <!-- "wrapper" -->
    </body>
</html>