Sophie

Sophie

distrib > Fedora > 15 > i386 > by-pkgid > 1e007a96761035f261351a68e7601417 > files > 362

parrot-docs-3.6.0-2.fc15.noarch.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/pmc.html">PMCs</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>docs/vtables.pod</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>tools/build/pmc2c.pl</em>, <em>docs/vtables.pod</em>.</p>
            </div> <!-- "mainbody" -->
            <div id="divider"></div>
            <div id="footer">
	        Copyright &copy; 2002-2011, Parrot Foundation.
            </div>
        </div> <!-- "wrapper" -->
    </body>
</html>