comparison website/src/manual_old.html.luan @ 1827:50e570b598b2

security
author Franklin Schmidt <fschmidt@gmail.com>
date Sun, 15 Sep 2024 10:36:46 -0600
parents 540bf2343078
children
comparison
equal deleted inserted replaced
1826:3cd1d267508c 1827:50e570b598b2
43 <h1><a href="manual.html">Luan Reference Manual</a></h1> 43 <h1><a href="manual.html">Luan Reference Manual</a></h1>
44 44
45 <p small> 45 <p small>
46 Original copyright &copy; 2015 Lua.org, PUC-Rio. 46 Original copyright &copy; 2015 Lua.org, PUC-Rio.
47 Freely available under the terms of the 47 Freely available under the terms of the
48 <a href="http://www.lua.org/license.html">Lua license</a>. 48 <a href="https://www.lua.org/license.html">Lua license</a>.
49 Modified for Luan. 49 Modified for Luan.
50 </p> 50 </p>
51 51
52 <hr/> 52 <hr/>
53 53
121 <hr/> 121 <hr/>
122 122
123 123
124 <h2 heading><a name="intro" href="#intro">Introduction</a></h2> 124 <h2 heading><a name="intro" href="#intro">Introduction</a></h2>
125 125
126 <p>Luan is a high level programming language based on <a href="http://www.lua.org">Lua</a>. A great strength of Lua is its simplicity and Luan takes this even further, being even simpler than Lua. The goal is to provide a simple programming language for the casual programmer with as few concepts as possible so that one can quickly learn the language and then easily understand any code written in Luan.</p> 126 <p>Luan is a high level programming language based on <a href="https://www.lua.org/">Lua</a>. A great strength of Lua is its simplicity and Luan takes this even further, being even simpler than Lua. The goal is to provide a simple programming language for the casual programmer with as few concepts as possible so that one can quickly learn the language and then easily understand any code written in Luan.</p>
127 127
128 <p>Luan is implemented in Java and is tightly coupled with Java. So it makes a great scripting language for Java programmers.</p> 128 <p>Luan is implemented in Java and is tightly coupled with Java. So it makes a great scripting language for Java programmers.</p>
129 129
130 <p>Unlike Lua which is meant to be embedded, Luan is meant to be a full scripting language. This done not by adding feature to Luan, but rather by providing a complete set of libraries.</p> 130 <p>Unlike Lua which is meant to be embedded, Luan is meant to be a full scripting language. This done not by adding feature to Luan, but rather by providing a complete set of libraries.</p>
131 131
254 254
255 255
256 <h3 heading><a name="env" href="#env">Environments</a></h3> 256 <h3 heading><a name="env" href="#env">Environments</a></h3>
257 257
258 <p> 258 <p>
259 The environment of a chunk starts with only one local variable: <code><a href="#require">require</a></code>. This function is used to load and access libraries and other modules. All other variables must be added to the environment using <a href="http://localhost:8080/manual.html#local_stmt">local declarations</a>. 259 The environment of a chunk starts with only one local variable: <code><a href="#require">require</a></code>. This function is used to load and access libraries and other modules. All other variables must be added to the environment using <a href="/manual.html#local_stmt">local declarations</a>.
260 260
261 <p> 261 <p>
262 As will be discussed in <a href="#vars">Variables</a> and <a href=#assignment">Assignment</a>, 262 As will be discussed in <a href="#vars">Variables</a> and <a href=#assignment">Assignment</a>,
263 any reference to a free name 263 any reference to a free name
264 (that is, a name not bound to any declaration) <code>var</code> 264 (that is, a name not bound to any declaration) <code>var</code>