Lua try an expansion programming language made to help common procedural programming with information description places

Lua try an expansion programming language made to help common procedural programming with information description places

It also offers close help for object-oriented programs, useful programs, and data-driven programs. Lua will probably be used as a strong, light-weight scripting vocabulary regarding program that requires one. Lua are applied as a library, printed in clean C (that will be, in common subset of ANSI C and C++).

Are an expansion words, Lua does not have any notion of a “main” regimen: they only operates inserted in a host customer, known as embedding plan or simply just the variety. This number system can invoke applications to perform a piece of Lua laws, can write and study Lua variables, and that can enter C applications becoming labeled as by Lua laws. With the use of C functionality, Lua are augmented to deal with numerous different domains, hence generating tailored programs languages revealing a syntactical framework. The Lua submission includes an example host program labeled as lua , which makes use of the Lua library to offer a total, independent Lua interpreter.

Lua is free program, and it is given as usual without guarantees, as mentioned with its license. The execution outlined within this guide can be acquired at Lua’s recognized webpage, .

1Introduction

Like most additional resource manual, this data was dry in places. For a topic for the conclusion behind the design of Lua, look at technical papers offered by Lua’s internet site. For a detailed introduction to development in Lua, discover Roberto’s guide, Programming in Lua (2nd Edition).

This area defines the lexis, the syntax, and the semantics of Lua. In other words, this part represent which tokens is legitimate, how they may be matched, and exactly what their unique combinations imply. …