<!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="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="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.</dl> <h1><a name="SEE_ALSO" >SEE ALSO</a></h1> <p><em>docs/pdds/pdd20_lexical_vars.pod</em>, <em>src/classes/lexpad.pmc</em>.</p> </div> <!-- "mainbody" --> <div id="divider"></div> <div id="footer"> Copyright © 2002-2011, Parrot Foundation. </div> </div> <!-- "wrapper" --> </body> </html>