Mercurial Hosting > luan
comparison website/src/manual.html @ 1395:9dfff82dfc59
finish postgres work
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Mon, 09 Sep 2019 01:22:23 -0600 |
parents | eb8b35dccd99 |
children | e48290f3d9fb |
comparison
equal
deleted
inserted
replaced
1394:8fe777ba5045 | 1395:9dfff82dfc59 |
---|---|
1810 end | 1810 end |
1811 </pre> | 1811 </pre> |
1812 | 1812 |
1813 | 1813 |
1814 | 1814 |
1815 <h4 heading><a name="Luan.eval" href="#Luan.eval"><code>Luan.eval (text [, source_name])</code></a></h4> | 1815 <h4 heading><a name="Luan.eval" href="#Luan.eval"><code>Luan.eval (text [, source_name] [, env])</code></a></h4> |
1816 | 1816 |
1817 <p> | 1817 <p> |
1818 Evaluates <code>text</code> as a Luan expression. | 1818 Evaluates <code>text</code> as a Luan expression. |
1819 | 1819 |
1820 <p> | 1820 <p> |
1821 Could be defined as: | 1821 Could be defined as: |
1822 | 1822 |
1823 <pre> | 1823 <pre> |
1824 function Luan.eval(text,source_name) | 1824 function Luan.eval(text,source_name, env) |
1825 return Luan.load( "return "..text, source_name or "eval" )() | 1825 return <a href="#Luan.load">Luan.load</a>( "return "..text, source_name or "eval", env )() |
1826 end | 1826 end |
1827 </pre> | 1827 </pre> |
1828 | 1828 |
1829 | 1829 |
1830 | 1830 |