<!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 - LexInfo PMC</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> » <a href="../../../html/pmc.html">PMCs</a> » LexInfo PMC </div> <h1><a name="NAME" >NAME</a></h1> <p>src/pmc/lexinfo.pmc - LexInfo PMC</p> <h1><a name="DESCRIPTION" >DESCRIPTION</a></h1> <p>These are the vtable functions for the lexinfo PMC.</p> <h2><a name="Functions" >Functions</a></h2> <dl> <dt><a name="void_class_init()" ><b><code>void class_init()</b></code></a></dt> Manipulate vtable->flags so that constant PMCs are created. If your inherited LexInfo is not so constant, then don't do that and provide a mark() method and set the custom_mark flag. <dt><a name="init_pmc(PMC_*sub)" ><b><code>init_pmc(PMC *sub)</b></code></a></dt> Initialize the LexInfo PMC and remember the associate subroutine. <dt><a name="void_declare_lex_preg(STRING_*name,_INTVAL_preg)" ><b><code>void declare_lex_preg(STRING *name, INTVAL preg)</b></code></a></dt> Declare a lexical variable that is an alias for a PMC register. The PIR compiler calls this method in response to a ".lex STRING, PREG" directive. <dt><a name="INTVAL_elements()" ><b><code>INTVAL elements()</b></code></a></dt> Returns the number of elements in the LexInfo hash. <dt><a name="PMC_*inspect_str(STRING_*what)" ><b><code>PMC *inspect_str(STRING *what)</b></code></a></dt> Introspects this LexInfo structure. The only valid introspection key is <code>symbols</code>, which gets an array of the names of the symbols in this lexpad. <dt><a name="void_visit(visit_info_*info)" ><b><code>void visit(visit_info *info)</b></code></a></dt> <dt><a name="void_freeze(visit_info_*info)" ><b><code>void freeze(visit_info *info)</b></code></a></dt> <dt><a name="void_thaw(visit_info_*info)" ><b><code>void thaw(visit_info *info)</b></code></a></dt> Freeze/thaw interface used during freeze/thaw of the Sub PMC. The implementation of the Hash PMC is called.</dl> <h1><a name="SEE_ALSO" >SEE ALSO</a></h1> <p><em><a href="../../docs/pdds/pdd20_lexical_vars.pod.html">docs/pdds/pdd20_lexical_vars.pod</a></em>, <em>src/classes/lexpad.pmc</em>.</p> </div> <!-- "mainbody" --> <div id="divider"></div> <div id="footer"> Copyright © 2002-2009, Parrot Foundation. </div> </div> <!-- "wrapper" --> </body> </html>