The Lua programming language is used for general procedural programming . Therefore, within the programming paradigms, it is considered belonging to the languages scripting imperatives . It is implemented as a C library and offers functions such as Lua code and a sample host program (called lua), which provides a separate Lua interpreter..
As a scripting language , Lua does not have its own main program. It only works built into a host application , which can call the above-mentioned functions through Lua code. Thanks to the C function, Lua can be extended by numerous functions to cover the equally numerous programming requirements. This programming language can be adapted very easily, so that a common syntactic framework is guaranteed .
If you already have knowledge of Pascal, you will have no problem with the Lua syntax, because both programming languages are very similar at this point: it is possible to separate several commands in a script line with a semicolon. Lua has a total of 20 defined keywords that are easy to learn. To give you an idea, Lua often uses function blocks that start with keywords like goto and end with words like end , elseif, or else . The local keyword identifies local variables that are only valid for the function block in which it appears. Function blocks can also be nested together .
Lua can work with the following data types: table, userdata, function, thread, nil, boolean, string, and number . From this list, only the first data type mentioned, table (table in Spanish), is structured. Variable data types are determined during script execution , but can be converted at any time if necessary.