Artifact Content
Not logged in

Artifact 4697f3dd9da1ee2d7fb5f8011ccf0fb7e8f3ff8f



<html><head>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
<meta content="text/javascript" http-equiv="content-script-type">
<title>polemy.eval</title>
<link rel="stylesheet" type="text/css" href="candydoc/style.css">
<!--[if lt IE 7]><link rel="stylesheet" type="text/css" href="candydoc/ie56hack.css"><![endif]-->
<script language="JavaScript" src="candydoc/util.js" type="text/javascript"></script>
<script language="JavaScript" src="candydoc/tree.js" type="text/javascript"></script>
<script language="JavaScript" src="candydoc/explorer.js" type="text/javascript"></script>
</head><body>
<div id="tabarea"></div><div id="explorerclient"></div>
<div id="content"><script>explorer.initialize("polemy.eval");</script>
	<table class="content">
		<tr><td id="docbody"><h1>polemy.eval</h1><!-- Generated by Ddoc from polemy\eval.d -->
<b>Authors:</b><br>
k.inaba
<br><br>
<b>License:</b><br>
NYSL 0.9982 http://www.kmonos.net/nysl/
<br><br>

 Evaluator for Polemy programming language.<br><br>


<script>explorer.outline.incSymbolLevel();</script>
<dl>
<script>explorer.outline.writeEnabled = true;</script>
<dt><span class="decl">class 
<span class="currsymbol">Evaluator</span>
<script>explorer.outline.addDecl('Evaluator');</script>

;
</span></dt>
<script>explorer.outline.writeEnabled = false;</script>


<dd>Objects for maitaining global environment and evaluation of expression on it<br><br>


<script>explorer.outline.incSymbolLevel();</script>
<dl>
<script>explorer.outline.writeEnabled = true;</script>
<dt><span class="decl">Value 
<span class="currsymbol">evalAST</span>
<script>explorer.outline.addDecl('evalAST');</script>

(AST <span class="funcparam">e</span>);
</span></dt>
<script>explorer.outline.writeEnabled = false;</script>


<dd>Evaluate the AST<br><br>

</dd>

<script>explorer.outline.writeEnabled = true;</script>
<dt><span class="decl">Value 
<span class="currsymbol">evalString</span>
<script>explorer.outline.addDecl('evalString');</script>

(S, T...)(S <span class="funcparam">str</span>, T <span class="funcparam">fn_ln_cn</span>);
</span></dt>
<script>explorer.outline.writeEnabled = false;</script>


<dd>Evaluate the string<br><br>

</dd>

<script>explorer.outline.writeEnabled = true;</script>
<dt><span class="decl">Value 
<span class="currsymbol">evalFile</span>
<script>explorer.outline.addDecl('evalFile');</script>

(S, T...)(S <span class="funcparam">filename</span>, T <span class="funcparam">ln_cn</span>);
</span></dt>
<script>explorer.outline.writeEnabled = false;</script>


<dd>Evaluate the file<br><br>

</dd>

<script>explorer.outline.writeEnabled = true;</script>
<dt><span class="decl">Table 
<span class="currsymbol">globalContext</span>
<script>explorer.outline.addDecl('globalContext');</script>

();
</span></dt>
<script>explorer.outline.writeEnabled = false;</script>


<dd>Get the global context<br><br>

</dd>

<script>explorer.outline.writeEnabled = true;</script>
<dt><span class="decl">this();
</span></dt>
<script>explorer.outline.writeEnabled = false;</script>


<dd>Initialize evaluator with empty context<br><br>

</dd>

<script>explorer.outline.writeEnabled = true;</script>
<dt><span class="decl">void 
<span class="currsymbol">addPrimitive</span>
<script>explorer.outline.addDecl('addPrimitive');</script>

(R, T...)(string <span class="funcparam">name</span>, Layer <span class="funcparam">defLay</span>, R delegate(T) <span class="funcparam">dg</span>);
</span></dt>
<script>explorer.outline.writeEnabled = false;</script>


<dd>Add primitive function to the global context<br><br>

</dd>
</dl>
<script>explorer.outline.decSymbolLevel();</script>


</dd>
</dl>
<script>explorer.outline.decSymbolLevel();</script>


</td></tr>
		<tr><td id="docfooter">
			Page was generated with
			<img src="candydoc/img/candydoc.gif" style="vertical-align:middle; position:relative; top:-1px">
			on Sun Nov 28 07:28:21 2010

		</td></tr>
	</table>
</div>
<script>
	explorer.packageExplorer.addModule("index");
	explorer.packageExplorer.addModule("main");
	explorer.packageExplorer.addModule("tricks.tricks");
	explorer.packageExplorer.addModule("tricks.test");
	explorer.packageExplorer.addModule("polemy._common");
	explorer.packageExplorer.addModule("polemy.failure");
	explorer.packageExplorer.addModule("polemy.layer");
	explorer.packageExplorer.addModule("polemy.fresh");
	explorer.packageExplorer.addModule("polemy.lex");
	explorer.packageExplorer.addModule("polemy.parse");
	explorer.packageExplorer.addModule("polemy.ast");
	explorer.packageExplorer.addModule("polemy.value");
	explorer.packageExplorer.addModule("polemy.valueconv");
	explorer.packageExplorer.addModule("polemy.eval");
	explorer.packageExplorer.addModule("polemy.runtime");
	explorer.packageExplorer.addModule("polemy.repl");</script>
</body></html>