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.

Lua is intended to be used as a powerful, light-weight scripting language for any program that needs one. This host program can invoke functions to execute a piece of Lua code, can write and read Lua variables, and can register C functions to be called by Lua code.

dating things to say-75

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.

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.

In other words, this section describes which tokens are valid, how they can be combined, and what their combinations mean.

The language constructs will be explained using the usual extended BNF notation, in which {) in Lua can be any string of letters, digits, and underscores, not beginning with a digit.