contents · index · other versions · english · portugus · espaol Lua is an extension programming language designed to support general procedural programming with data description facilities.It also offers good support for object-oriented programming, functional programming, and data-driven programming.
The Lua distribution includes a sample host program called , which uses the Lua library to offer a complete, stand-alone Lua interpreter.
Lua is free software, and is provided as usual with no guarantees, as stated in its license.
The implementation described in this manual is available at Lua's official web site, .
Like any other reference manual, this document is dry in places.
(Note that if a numerical escape is to be followed by a digit, it must be expressed using exactly three digits.) Strings in Lua can contain any 8-bit value, including embedded zeros, which can be specified as '.
A long string starts with an opening long bracket of any level and ends at the first closing long bracket of the same level.Literals in this bracketed form can run for several lines, do not interpret any escape sequences, and ignore long brackets of any other level.They can contain anything except a closing bracket of the proper level.For a discussion of the decisions behind the design of Lua, see the technical papers available at Lua's web site.For a detailed introduction to programming in Lua, see Roberto's book, .This section describes the lexis, the syntax, and the semantics of Lua.