Mercurial Hosting > luan
comparison website/src/manual.html @ 372:f08cefa4594c
start editing manual
| author | Franklin Schmidt <fschmidt@gmail.com> |
|---|---|
| date | Fri, 17 Apr 2015 07:58:20 -0600 |
| parents | e01cddba3433 |
| children | 571057b1666b |
comparison
equal
deleted
inserted
replaced
| 371:e01cddba3433 | 372:f08cefa4594c |
|---|---|
| 1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> | 1 <!DOCTYPE html> |
| 2 <html> | 2 <html lang="en"> |
| 3 | 3 <head> |
| 4 <head> | 4 <meta charset="utf-8"> |
| 5 <title>Lua 5.3 Reference Manual</title> | 5 <meta name="viewport" content="width=device-width, initial-scale=1"> |
| 6 <link rel="stylesheet" type="text/css" href="../../lua.css"> | 6 |
| 7 <link rel="stylesheet" type="text/css" href="../manual.css"> | 7 <title>Luan Reference Manual</title> |
| 8 <META HTTP-EQUIV="content-type" CONTENT="text/html; charset=iso-8859-1"> | 8 |
| 9 </head> | 9 <link href="http://www.simplyhtml.org/assets/bootstrap/css/bootstrap.min.css" rel="stylesheet"> |
| 10 <link rel="stylesheet" href="http://www.simplyhtml.org/assets/font-awesome/css/font-awesome.min.css"> | |
| 11 <script src="http://www.simplyhtml.org/assets/jquery/jquery.min.js"></script> | |
| 12 | |
| 13 <link href="http://www.simplyhtml.org/assets/simplyhtml/simplyhtml.css" rel="stylesheet"/> | |
| 14 <script src="http://www.simplyhtml.org/assets/simplyhtml/simplyhtml.js"></script> | |
| 15 </head> | |
| 10 | 16 |
| 11 <body> | 17 <body> |
| 12 | 18 <div container> |
| 13 <hr> | 19 <div><small><a href="/">Luan</a></small></div> |
| 14 <h1> | 20 |
| 15 <a href="../../home.html"><img src="../../images/logo.gif" alt="" border="0"></a> | 21 <h1>Luan Reference Manual</h1> |
| 16 Lua 5.3 Reference Manual | 22 |
| 17 </h1> | |
| 18 | |
| 19 by Roberto Ierusalimschy, Luiz Henrique de Figueiredo, Waldemar Celes | |
| 20 <p> | 23 <p> |
| 21 <small> | 24 <small> |
| 22 Copyright © 2015 Lua.org, PUC-Rio. | 25 Original copyright © 2015 Lua.org, PUC-Rio. |
| 23 Freely available under the terms of the | 26 Freely available under the terms of the |
| 24 <a href="../../license.html">Lua license</a>. | 27 <a href="http://www.lua.org/license.html">Lua license</a>. |
| 28 Modified for Luan. | |
| 25 </small> | 29 </small> |
| 26 <hr> | 30 </p> |
| 27 <p> | 31 |
| 28 | 32 <hr/> |
| 29 <a href="contents.html#contents">contents</A> | 33 |
| 30 · | 34 <h2>Contents</h2> |
| 31 <a href="contents.html#index">index</A> | 35 |
| 32 · | 36 <div margin-bottom="1em"><a href="#intro">Introduction</a></div> |
| 33 <a href="../">other versions</A> | 37 |
| 34 | 38 <hr/> |
| 35 <!-- ====================================================================== --> | 39 |
| 36 <p> | 40 <h2 margin-top="1em"><a name="intro">Introduction</a></h2> |
| 37 | 41 |
| 38 <!-- $Id: manual.of,v 1.146 2015/01/06 11:23:01 roberto Exp $ --> | 42 <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> |
| 39 | 43 |
| 40 | 44 <p>Luan is implemented in Java and is tightly coupled with Java. So it makes a great scripting language for Java programmers.</p> |
| 41 | 45 |
| 42 | 46 <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> |
| 43 <h1>1 – <a name="1">Introduction</a></h1> | |
| 44 | |
| 45 <p> | |
| 46 Lua is an extension programming language designed to support | |
| 47 general procedural programming with data description | |
| 48 facilities. | |
| 49 Lua also offers good support for object-oriented programming, | |
| 50 functional programming, and data-driven programming. | |
| 51 Lua is intended to be used as a powerful, lightweight, | |
| 52 embeddable scripting language for any program that needs one. | |
| 53 Lua is implemented as a library, written in <em>clean C</em>, | |
| 54 the common subset of Standard C and C++. | |
| 55 | |
| 56 | |
| 57 <p> | |
| 58 As an extension language, Lua has no notion of a "main" program: | |
| 59 it only works <em>embedded</em> in a host client, | |
| 60 called the <em>embedding program</em> or simply the <em>host</em>. | |
| 61 The host program can invoke functions to execute a piece of Lua code, | |
| 62 can write and read Lua variables, | |
| 63 and can register C functions to be called by Lua code. | |
| 64 Through the use of C functions, Lua can be augmented to cope with | |
| 65 a wide range of different domains, | |
| 66 thus creating customized programming languages sharing a syntactical framework. | |
| 67 The Lua distribution includes a sample host program called <code>lua</code>, | |
| 68 which uses the Lua library to offer a complete, standalone Lua interpreter, | |
| 69 for interactive or batch use. | |
| 70 | |
| 71 | |
| 72 <p> | |
| 73 Lua is free software, | |
| 74 and is provided as usual with no guarantees, | |
| 75 as stated in its license. | |
| 76 The implementation described in this manual is available | |
| 77 at Lua's official web site, <code>www.lua.org</code>. | |
| 78 | |
| 79 | |
| 80 <p> | |
| 81 Like any other reference manual, | |
| 82 this document is dry in places. | |
| 83 For a discussion of the decisions behind the design of Lua, | |
| 84 see the technical papers available at Lua's web site. | |
| 85 For a detailed introduction to programming in Lua, | |
| 86 see Roberto's book, <em>Programming in Lua</em>. | |
| 87 | |
| 88 | 47 |
| 89 | 48 |
| 90 <h1>2 – <a name="2">Basic Concepts</a></h1> | 49 <h1>2 – <a name="2">Basic Concepts</a></h1> |
| 91 | 50 |
| 92 <p> | 51 <p> |
| 10785 </SMALL> | 10744 </SMALL> |
| 10786 <!-- | 10745 <!-- |
| 10787 Last change: minor edit | 10746 Last change: minor edit |
| 10788 --> | 10747 --> |
| 10789 | 10748 |
| 10790 </body></html> | 10749 </div> |
| 10791 | 10750 </body> |
| 10751 </html> |
