LUA Online Training
- Getting Started
- 1.1 – Chunks
- 1.2 – Global Variables
- 1.3 – Some Lexical Conventions
- 1.4 – The Stand-Alone Interpreter
- 2 – Types and Values
-
2.1 – Nil
-
2.2 – Booleans
-
2.3 – Numbers
-
2.4 – Strings
-
2.5 – Tables
-
2.6 – Functions
- 3 – Expressions
-
3.1 – Arithmetic Operators
-
3.2 – Relational Operators
-
3.3 – Logical Operators
-
3.4 – Concatenation
-
3.5 – Precedence
-
3.6 – Table Constructors
- 4 – Statements
-
4.1 – Assignment
-
4.2 – Local Variables and Blocks
-
4.3 – Control Structures
-
4.3.1 – if then else
-
4.3.2 – while
-
4.3.3 – repeat
-
4.3.4 – Numeric for
-
4.3.5 – Generic for
-
4.4 – break and return
- 5 – Functions
-
5.1 – Multiple Results
-
5.2 – Variable Number of Arguments
- 5.3 – Named Arguments
- 6 – More about Functions
- 6.1 – Closures
- 6.2 – Non-Global Functions
- 6.3 – Proper Tail Calls
- 7 – Iterators and the Generic for
- 7.1 – Iterators and Closures
- 7.2 – The Semantics of the Generic for
- 7.3 – Stateless Iterators
- 7.4 – Iterators with Complex State
- 7.5 – True Iterators
- 8 - Data Structures
- 8.1 - Strings
- 8.2 - Arrays
- Single dimensional array
- multi dimensional array
- 9 - Functions
- 10 - File handling
-
11 - exception handling
-
12 - Lua modules
- 13 - OOP in LUA