Lua is an extensible programming language that is designed to support common procedural programming and to have relevant data description facilities. Lua also provides good support for object-oriented programming, functional programming, and data-driven programming. It can be used as a powerful, lightweight scripting language for any program that is needed. Lua is provided in the form of a library written in clean C. (The so-called clean C, refers to the ANSI C and C + + a subset of the Communist pass)
As an extended language, Lua does not have the concept of a "main" program: it can only be embedded in a host program, which is called embedding program or host. A host program can execute a small section of LUA code by calling a function, read and write Lua variables, and inject the C function to make the LUA code call. These extended C functions can greatly extend the domain in which Lua can handle transactions, so that various languages can be customized, and they share a unified framework of syntactic formatting. The official release of LUA includes a simple hosting program called LUA, which uses the LUA library to provide a separate LUA interpreter.
Lua is a free software, and its licensing determines that there is generally no guarantee of its use. The implementation of what is described in this handbook can be found in the official website of Lua, www.lua.org,
Like many other reference manuals, this document is a bit boring in some places. For a discussion of Lua's design ideas, look at the technical papers available on the LUA Web site. For details on programming with Lua, you can read Roberto's book, Programming in Lua (Second Edition).