8caee17864 2010-11-24 kinaba: 8caee17864 2010-11-24 kinaba: <html><head> 8caee17864 2010-11-24 kinaba: <meta http-equiv="content-type" content="text/html; charset=utf-8"> 8caee17864 2010-11-24 kinaba: <meta content="text/javascript" http-equiv="content-script-type"> 8caee17864 2010-11-24 kinaba: <title>polemy.value</title> 8caee17864 2010-11-24 kinaba: <link rel="stylesheet" type="text/css" href="candydoc/style.css"> 8caee17864 2010-11-24 kinaba: <!--[if lt IE 7]><link rel="stylesheet" type="text/css" href="candydoc/ie56hack.css"><![endif]--> 8caee17864 2010-11-24 kinaba: <script language="JavaScript" src="candydoc/util.js" type="text/javascript"></script> 8caee17864 2010-11-24 kinaba: <script language="JavaScript" src="candydoc/tree.js" type="text/javascript"></script> 8caee17864 2010-11-24 kinaba: <script language="JavaScript" src="candydoc/explorer.js" type="text/javascript"></script> 8caee17864 2010-11-24 kinaba: </head><body> 8caee17864 2010-11-24 kinaba: <div id="tabarea"></div><div id="explorerclient"></div> 8caee17864 2010-11-24 kinaba: <div id="content"><script>explorer.initialize("polemy.value");</script> 8caee17864 2010-11-24 kinaba: <table class="content"> 8caee17864 2010-11-24 kinaba: <tr><td id="docbody"><h1>polemy.value</h1><!-- Generated by Ddoc from polemy\value.d --> 8caee17864 2010-11-24 kinaba: <b>Authors:</b><br> 8caee17864 2010-11-24 kinaba: k.inaba 8caee17864 2010-11-24 kinaba: <br><br> 8caee17864 2010-11-24 kinaba: <b>License:</b><br> 8caee17864 2010-11-24 kinaba: NYSL 0.9982 http://www.kmonos.net/nysl/ 8caee17864 2010-11-24 kinaba: <br><br> 8caee17864 2010-11-24 kinaba: 8caee17864 2010-11-24 kinaba: Runtime data structures for Polemy programming language.<br><br> 8caee17864 2010-11-24 kinaba: 8caee17864 2010-11-24 kinaba: 8caee17864 2010-11-24 kinaba: <script>explorer.outline.incSymbolLevel();</script> 8caee17864 2010-11-24 kinaba: <dl> 8caee17864 2010-11-24 kinaba: <script>explorer.outline.writeEnabled = true;</script> 8caee17864 2010-11-24 kinaba: <dt><span class="decl">abstract class 8caee17864 2010-11-24 kinaba: <span class="currsymbol">Value</span> 8caee17864 2010-11-24 kinaba: <script>explorer.outline.addDecl('Value');</script> 8caee17864 2010-11-24 kinaba: 8caee17864 2010-11-24 kinaba: ; 8caee17864 2010-11-24 kinaba: </span></dt> 8caee17864 2010-11-24 kinaba: <script>explorer.outline.writeEnabled = false;</script> 8caee17864 2010-11-24 kinaba: 8caee17864 2010-11-24 kinaba: 8caee17864 2010-11-24 kinaba: <dd>Runtime values of Polemy<br><br> 8caee17864 2010-11-24 kinaba: 8caee17864 2010-11-24 kinaba: </dd> 8caee17864 2010-11-24 kinaba: 8caee17864 2010-11-24 kinaba: <script>explorer.outline.writeEnabled = true;</script> 8caee17864 2010-11-24 kinaba: <dt><span class="decl">class 8caee17864 2010-11-24 kinaba: <span class="currsymbol">IntValue</span> 8caee17864 2010-11-24 kinaba: <script>explorer.outline.addDecl('IntValue');</script> 8caee17864 2010-11-24 kinaba: 8caee17864 2010-11-24 kinaba: : polemy.value.Value; 8caee17864 2010-11-24 kinaba: </span></dt> 8caee17864 2010-11-24 kinaba: <script>explorer.outline.writeEnabled = false;</script> 8caee17864 2010-11-24 kinaba: 8caee17864 2010-11-24 kinaba: 8caee17864 2010-11-24 kinaba: <dd><br><br> 8caee17864 2010-11-24 kinaba: </dd> 8caee17864 2010-11-24 kinaba: 8caee17864 2010-11-24 kinaba: <script>explorer.outline.writeEnabled = true;</script> 8caee17864 2010-11-24 kinaba: <dt><span class="decl">class 8caee17864 2010-11-24 kinaba: <span class="currsymbol">StrValue</span> 8caee17864 2010-11-24 kinaba: <script>explorer.outline.addDecl('StrValue');</script> 8caee17864 2010-11-24 kinaba: 8caee17864 2010-11-24 kinaba: : polemy.value.Value; 8caee17864 2010-11-24 kinaba: </span></dt> 8caee17864 2010-11-24 kinaba: <script>explorer.outline.writeEnabled = false;</script> 8caee17864 2010-11-24 kinaba: 8caee17864 2010-11-24 kinaba: 8caee17864 2010-11-24 kinaba: <dd><br><br> 8caee17864 2010-11-24 kinaba: </dd> 8caee17864 2010-11-24 kinaba: 8caee17864 2010-11-24 kinaba: <script>explorer.outline.writeEnabled = true;</script> 8caee17864 2010-11-24 kinaba: <dt><span class="decl">class 203e4cb208 2010-11-27 kinaba: <span class="currsymbol">BottomValue</span> 203e4cb208 2010-11-27 kinaba: <script>explorer.outline.addDecl('BottomValue');</script> 8caee17864 2010-11-24 kinaba: 8caee17864 2010-11-24 kinaba: : polemy.value.Value; 8caee17864 2010-11-24 kinaba: </span></dt> 8caee17864 2010-11-24 kinaba: <script>explorer.outline.writeEnabled = false;</script> 8caee17864 2010-11-24 kinaba: 8caee17864 2010-11-24 kinaba: 8caee17864 2010-11-24 kinaba: <dd><br><br> 8caee17864 2010-11-24 kinaba: </dd> 8caee17864 2010-11-24 kinaba: 8caee17864 2010-11-24 kinaba: <script>explorer.outline.writeEnabled = true;</script> 8caee17864 2010-11-24 kinaba: <dt><span class="decl">abstract class 8caee17864 2010-11-24 kinaba: <span class="currsymbol">FunValue</span> 8caee17864 2010-11-24 kinaba: <script>explorer.outline.addDecl('FunValue');</script> 8caee17864 2010-11-24 kinaba: 8caee17864 2010-11-24 kinaba: : polemy.value.Value; 8caee17864 2010-11-24 kinaba: </span></dt> 8caee17864 2010-11-24 kinaba: <script>explorer.outline.writeEnabled = false;</script> 8caee17864 2010-11-24 kinaba: 8caee17864 2010-11-24 kinaba: 8caee17864 2010-11-24 kinaba: <dd><br><br> 8caee17864 2010-11-24 kinaba: </dd> 8caee17864 2010-11-24 kinaba: 8caee17864 2010-11-24 kinaba: <script>explorer.outline.writeEnabled = true;</script> 8caee17864 2010-11-24 kinaba: <dt><span class="decl">class 8caee17864 2010-11-24 kinaba: <span class="currsymbol">Table</span> 8caee17864 2010-11-24 kinaba: <script>explorer.outline.addDecl('Table');</script> 8caee17864 2010-11-24 kinaba: 8caee17864 2010-11-24 kinaba: : polemy.value.Value; 8caee17864 2010-11-24 kinaba: </span></dt> 8caee17864 2010-11-24 kinaba: <script>explorer.outline.writeEnabled = false;</script> 8caee17864 2010-11-24 kinaba: 8caee17864 2010-11-24 kinaba: 8caee17864 2010-11-24 kinaba: <dd>Context (variable environment) 8caee17864 2010-11-24 kinaba: Simlar to prototype chain of ECMAScript etc. 8caee17864 2010-11-24 kinaba: But extended with the notion of "Layer"<br><br> 8caee17864 2010-11-24 kinaba: 8caee17864 2010-11-24 kinaba: 8caee17864 2010-11-24 kinaba: <script>explorer.outline.incSymbolLevel();</script> 8caee17864 2010-11-24 kinaba: <dl> 474c4facf0 2010-11-25 kinaba: <script>explorer.outline.writeEnabled = true;</script> 474c4facf0 2010-11-25 kinaba: <dt><span class="decl">void 474c4facf0 2010-11-25 kinaba: <span class="currsymbol">set</span> 474c4facf0 2010-11-25 kinaba: <script>explorer.outline.addDecl('set');</script> 474c4facf0 2010-11-25 kinaba: 474c4facf0 2010-11-25 kinaba: (string <span class="funcparam">i</span>, Layer <span class="funcparam">lay</span>, Value <span class="funcparam">v</span>); 474c4facf0 2010-11-25 kinaba: </span></dt> 474c4facf0 2010-11-25 kinaba: <script>explorer.outline.writeEnabled = false;</script> 474c4facf0 2010-11-25 kinaba: 474c4facf0 2010-11-25 kinaba: 474c4facf0 2010-11-25 kinaba: <dd>Set the value <span class="funcparam">v</span> to the index <span class="funcparam">i</span> of layer <span class="funcparam">lay</span><br><br> 474c4facf0 2010-11-25 kinaba: 474c4facf0 2010-11-25 kinaba: </dd> 474c4facf0 2010-11-25 kinaba: 474c4facf0 2010-11-25 kinaba: <script>explorer.outline.writeEnabled = true;</script> 474c4facf0 2010-11-25 kinaba: <dt><span class="decl">const bool 474c4facf0 2010-11-25 kinaba: <span class="currsymbol">has</span> 474c4facf0 2010-11-25 kinaba: <script>explorer.outline.addDecl('has');</script> 474c4facf0 2010-11-25 kinaba: 474c4facf0 2010-11-25 kinaba: (string <span class="funcparam">i</span>, Layer <span class="funcparam">lay</span>); 474c4facf0 2010-11-25 kinaba: </span></dt> 474c4facf0 2010-11-25 kinaba: <script>explorer.outline.writeEnabled = false;</script> 474c4facf0 2010-11-25 kinaba: 474c4facf0 2010-11-25 kinaba: 474c4facf0 2010-11-25 kinaba: <dd>True if index <span class="funcparam">i</span> 474c4facf0 2010-11-25 kinaba: <span class="currsymbol">has</span> 474c4facf0 2010-11-25 kinaba: <script>explorer.outline.addDecl('has');</script> 474c4facf0 2010-11-25 kinaba: 474c4facf0 2010-11-25 kinaba: value in layer <span class="funcparam">lay</span><br><br> 474c4facf0 2010-11-25 kinaba: 474c4facf0 2010-11-25 kinaba: </dd> 474c4facf0 2010-11-25 kinaba: 474c4facf0 2010-11-25 kinaba: <script>explorer.outline.writeEnabled = true;</script> 474c4facf0 2010-11-25 kinaba: <dt><span class="decl">Value 474c4facf0 2010-11-25 kinaba: <span class="currsymbol">get</span> 474c4facf0 2010-11-25 kinaba: <script>explorer.outline.addDecl('get');</script> 474c4facf0 2010-11-25 kinaba: 474c4facf0 2010-11-25 kinaba: (string <span class="funcparam">i</span>, Layer <span class="funcparam">lay</span>, LexPosition <span class="funcparam">pos</span> = null); 474c4facf0 2010-11-25 kinaba: </span></dt> 474c4facf0 2010-11-25 kinaba: <script>explorer.outline.writeEnabled = false;</script> 474c4facf0 2010-11-25 kinaba: 474c4facf0 2010-11-25 kinaba: 474c4facf0 2010-11-25 kinaba: <dd>Return the value of index <span class="funcparam">i</span> at layer <span class="funcparam">lay</span>. Throws if it is not set<br><br> 474c4facf0 2010-11-25 kinaba: 474c4facf0 2010-11-25 kinaba: </dd> 474c4facf0 2010-11-25 kinaba: 474c4facf0 2010-11-25 kinaba: <script>explorer.outline.writeEnabled = true;</script> 474c4facf0 2010-11-25 kinaba: <dt><span class="decl">T 474c4facf0 2010-11-25 kinaba: <span class="currsymbol">access</span> 474c4facf0 2010-11-25 kinaba: <script>explorer.outline.addDecl('access');</script> 474c4facf0 2010-11-25 kinaba: 474c4facf0 2010-11-25 kinaba: (T, S...)(Layer <span class="funcparam">lay</span>, string <span class="funcparam">path</span>, S <span class="funcparam">rest</span>); 474c4facf0 2010-11-25 kinaba: </span></dt> 474c4facf0 2010-11-25 kinaba: <script>explorer.outline.writeEnabled = false;</script> 474c4facf0 2010-11-25 kinaba: 474c4facf0 2010-11-25 kinaba: 474c4facf0 2010-11-25 kinaba: <dd>t. 474c4facf0 2010-11-25 kinaba: <span class="currsymbol">access</span> 474c4facf0 2010-11-25 kinaba: <script>explorer.outline.addDecl('access');</script> 474c4facf0 2010-11-25 kinaba: 474c4facf0 2010-11-25 kinaba: !T(lay,a,b,...) returns t.get(a,lay).get(b,lay).... if exists 474c4facf0 2010-11-25 kinaba: and has type T. Returns <b>null</b> otherwise<br><br> 474c4facf0 2010-11-25 kinaba: 474c4facf0 2010-11-25 kinaba: </dd> 474c4facf0 2010-11-25 kinaba: 8caee17864 2010-11-24 kinaba: <script>explorer.outline.writeEnabled = true;</script> 8caee17864 2010-11-24 kinaba: <dt><span class="decl">bool 8caee17864 2010-11-24 kinaba: <span class="currsymbol">empty</span> 8caee17864 2010-11-24 kinaba: <script>explorer.outline.addDecl('empty');</script> 8caee17864 2010-11-24 kinaba: 8caee17864 2010-11-24 kinaba: (); 8caee17864 2010-11-24 kinaba: </span></dt> 8caee17864 2010-11-24 kinaba: <script>explorer.outline.writeEnabled = false;</script> 8caee17864 2010-11-24 kinaba: 8caee17864 2010-11-24 kinaba: 8caee17864 2010-11-24 kinaba: <dd>Is this an 8caee17864 2010-11-24 kinaba: <span class="currsymbol">empty</span> 8caee17864 2010-11-24 kinaba: <script>explorer.outline.addDecl('empty');</script> 8caee17864 2010-11-24 kinaba: 8caee17864 2010-11-24 kinaba: table?<br><br> 8caee17864 2010-11-24 kinaba: 8caee17864 2010-11-24 kinaba: </dd> 8caee17864 2010-11-24 kinaba: 8caee17864 2010-11-24 kinaba: <script>explorer.outline.writeEnabled = true;</script> 8caee17864 2010-11-24 kinaba: <dt><span class="decl">bool 8caee17864 2010-11-24 kinaba: <span class="currsymbol">isList</span> 8caee17864 2010-11-24 kinaba: <script>explorer.outline.addDecl('isList');</script> 8caee17864 2010-11-24 kinaba: 8caee17864 2010-11-24 kinaba: (); 8caee17864 2010-11-24 kinaba: </span></dt> 8caee17864 2010-11-24 kinaba: <script>explorer.outline.writeEnabled = false;</script> 8caee17864 2010-11-24 kinaba: 8caee17864 2010-11-24 kinaba: 8caee17864 2010-11-24 kinaba: <dd>Can be seen as a cons-list?<br><br> 8caee17864 2010-11-24 kinaba: 8caee17864 2010-11-24 kinaba: </dd> 8caee17864 2010-11-24 kinaba: 8caee17864 2010-11-24 kinaba: <script>explorer.outline.writeEnabled = true;</script> 8caee17864 2010-11-24 kinaba: <dt><span class="decl">Value[] 8caee17864 2010-11-24 kinaba: <span class="currsymbol">toList</span> 8caee17864 2010-11-24 kinaba: <script>explorer.outline.addDecl('toList');</script> 8caee17864 2010-11-24 kinaba: 8caee17864 2010-11-24 kinaba: (); 8caee17864 2010-11-24 kinaba: </span></dt> 8caee17864 2010-11-24 kinaba: <script>explorer.outline.writeEnabled = false;</script> 8caee17864 2010-11-24 kinaba: 8caee17864 2010-11-24 kinaba: 8caee17864 2010-11-24 kinaba: <dd>Regard table as a cons-list and convert to an array<br><br> 8caee17864 2010-11-24 kinaba: 8caee17864 2010-11-24 kinaba: </dd> 474c4facf0 2010-11-25 kinaba: 474c4facf0 2010-11-25 kinaba: <script>explorer.outline.writeEnabled = true;</script> 474c4facf0 2010-11-25 kinaba: <dt><span class="decl">Tuple!(string,string,Value)[] 474c4facf0 2010-11-25 kinaba: <span class="currsymbol">direct_entries</span> 474c4facf0 2010-11-25 kinaba: <script>explorer.outline.addDecl('direct_entries');</script> 474c4facf0 2010-11-25 kinaba: 474c4facf0 2010-11-25 kinaba: (); 474c4facf0 2010-11-25 kinaba: </span></dt> 474c4facf0 2010-11-25 kinaba: <script>explorer.outline.writeEnabled = false;</script> 474c4facf0 2010-11-25 kinaba: 474c4facf0 2010-11-25 kinaba: 474c4facf0 2010-11-25 kinaba: <dd>Get the list of direct entries ignoring prototypes in sorted order<br><br> 474c4facf0 2010-11-25 kinaba: 474c4facf0 2010-11-25 kinaba: </dd> 474c4facf0 2010-11-25 kinaba: 474c4facf0 2010-11-25 kinaba: <script>explorer.outline.writeEnabled = true;</script> 474c4facf0 2010-11-25 kinaba: <dt><span class="decl">Tuple!(string,string,Value)[] 474c4facf0 2010-11-25 kinaba: <span class="currsymbol">entries</span> 474c4facf0 2010-11-25 kinaba: <script>explorer.outline.addDecl('entries');</script> 474c4facf0 2010-11-25 kinaba: 474c4facf0 2010-11-25 kinaba: (); 474c4facf0 2010-11-25 kinaba: </span></dt> 474c4facf0 2010-11-25 kinaba: <script>explorer.outline.writeEnabled = false;</script> 474c4facf0 2010-11-25 kinaba: 474c4facf0 2010-11-25 kinaba: 474c4facf0 2010-11-25 kinaba: <dd>Get the whole list of observable 474c4facf0 2010-11-25 kinaba: <span class="currsymbol">entries</span> 474c4facf0 2010-11-25 kinaba: <script>explorer.outline.addDecl('entries');</script> 474c4facf0 2010-11-25 kinaba: 474c4facf0 2010-11-25 kinaba: in unspecified order<br><br> 474c4facf0 2010-11-25 kinaba: 474c4facf0 2010-11-25 kinaba: </dd> 8caee17864 2010-11-24 kinaba: </dl> 8caee17864 2010-11-24 kinaba: <script>explorer.outline.decSymbolLevel();</script> 8caee17864 2010-11-24 kinaba: 8caee17864 2010-11-24 kinaba: 8caee17864 2010-11-24 kinaba: </dd> 8caee17864 2010-11-24 kinaba: </dl> 8caee17864 2010-11-24 kinaba: <script>explorer.outline.decSymbolLevel();</script> 8caee17864 2010-11-24 kinaba: 8caee17864 2010-11-24 kinaba: 8caee17864 2010-11-24 kinaba: </td></tr> 8caee17864 2010-11-24 kinaba: <tr><td id="docfooter"> 8caee17864 2010-11-24 kinaba: Page was generated with 8caee17864 2010-11-24 kinaba: <img src="candydoc/img/candydoc.gif" style="vertical-align:middle; position:relative; top:-1px"> 203e4cb208 2010-11-27 kinaba: on Sat Nov 27 01:18:01 2010 8caee17864 2010-11-24 kinaba: 8caee17864 2010-11-24 kinaba: </td></tr> 8caee17864 2010-11-24 kinaba: </table> 8caee17864 2010-11-24 kinaba: </div> 8caee17864 2010-11-24 kinaba: <script> 8caee17864 2010-11-24 kinaba: explorer.packageExplorer.addModule("index"); 8caee17864 2010-11-24 kinaba: explorer.packageExplorer.addModule("main"); 8caee17864 2010-11-24 kinaba: explorer.packageExplorer.addModule("tricks.tricks"); 8caee17864 2010-11-24 kinaba: explorer.packageExplorer.addModule("tricks.test"); 8caee17864 2010-11-24 kinaba: explorer.packageExplorer.addModule("polemy._common"); 8caee17864 2010-11-24 kinaba: explorer.packageExplorer.addModule("polemy.failure"); 8caee17864 2010-11-24 kinaba: explorer.packageExplorer.addModule("polemy.layer"); 8caee17864 2010-11-24 kinaba: explorer.packageExplorer.addModule("polemy.fresh"); 8caee17864 2010-11-24 kinaba: explorer.packageExplorer.addModule("polemy.lex"); 8caee17864 2010-11-24 kinaba: explorer.packageExplorer.addModule("polemy.parse"); 8caee17864 2010-11-24 kinaba: explorer.packageExplorer.addModule("polemy.ast"); 8caee17864 2010-11-24 kinaba: explorer.packageExplorer.addModule("polemy.value"); 8caee17864 2010-11-24 kinaba: explorer.packageExplorer.addModule("polemy.valueconv"); 8caee17864 2010-11-24 kinaba: explorer.packageExplorer.addModule("polemy.eval"); 8caee17864 2010-11-24 kinaba: explorer.packageExplorer.addModule("polemy.runtime"); 8caee17864 2010-11-24 kinaba: explorer.packageExplorer.addModule("polemy.repl");</script> 8caee17864 2010-11-24 kinaba: </body></html> 8caee17864 2010-11-24 kinaba: 8caee17864 2010-11-24 kinaba: