PageRenderTime 144ms CodeModel.GetById 135ms app.highlight 6ms RepoModel.GetById 1ms app.codeStats 0ms

/doc/core/z_expression.html

https://code.google.com/p/zotonic/
HTML | 39 lines | 32 code | 7 blank | 0 comment | 0 complexity | 457fabfcdfef03e472257ed12d005e6d MD5 | raw file
 1<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
 2<html>
 3<head>
 4<title>Module z_expression</title>
 5<link rel="stylesheet" type="text/css" href="stylesheet.css" title="EDoc">
 6</head>
 7<body bgcolor="white">
 8<div class="navbar"><a name="#navbar_top"></a><table width="100%" border="0" cellspacing="0" cellpadding="2" summary="navigation bar"><tr><td><a href="overview-summary.html" target="overviewFrame">Overview</a></td><td><a href="http://www.erlang.org/"><img src="erlang.png" align="right" border="0" alt="erlang logo"></a></td></tr></table></div>
 9<hr>
10
11<h1>Module z_expression</h1>
12<ul class="index"><li><a href="#description">Description</a></li><li><a href="#index">Function Index</a></li><li><a href="#functions">Function Details</a></li></ul>Expression parsing and evaluation.
13<p>Copyright Š 2011 Marc Worrell</p>
14
15<p><b>Authors:</b> Marc Worrell (<a href="mailto:marc@worrell.nl"><tt>marc@worrell.nl</tt></a>).</p>
16
17<h2><a name="description">Description</a></h2>Expression parsing and evaluation.
18<h2><a name="index">Function Index</a></h2>
19<table width="100%" border="1" cellspacing="0" cellpadding="2" summary="function index"><tr><td valign="top"><a href="#eval-3">eval/3</a></td><td>Evaluate a parsed expression tree.</td></tr>
20<tr><td valign="top"><a href="#parse-1">parse/1</a></td><td>Parse an expression to an expression tree.</td></tr>
21</table>
22
23<h2><a name="functions">Function Details</a></h2>
24
25<h3 class="function"><a name="eval-3">eval/3</a></h3>
26<div class="spec">
27<p><tt>eval(Tree, Vars, Context) -&gt; any()</tt></p>
28</div><p>Evaluate a parsed expression tree.</p>
29
30<h3 class="function"><a name="parse-1">parse/1</a></h3>
31<div class="spec">
32<p><tt>parse(Expr) -&gt; any()</tt></p>
33</div><p>Parse an expression to an expression tree.  Uses the erlydtl parser.</p>
34<hr>
35
36<div class="navbar"><a name="#navbar_bottom"></a><table width="100%" border="0" cellspacing="0" cellpadding="2" summary="navigation bar"><tr><td><a href="overview-summary.html" target="overviewFrame">Overview</a></td><td><a href="http://www.erlang.org/"><img src="erlang.png" align="right" border="0" alt="erlang logo"></a></td></tr></table></div>
37<p><i>Generated by EDoc, Aug 12 2011, 20:01:39.</i></p>
38</body>
39</html>