Lua 5.1 Reference ManualLua 5.1 Reference Manual by Roberto Ierusalimschy, Luiz Henrique de Figueiredo, Waldemar Celes 1 – Introduction2 – The Language 2.1 – Lexical Conventions2.2 – Values and Types2.3 – Variables2.4 – Statements2.5 – Expressions2.6 – Visibility Rules2.7 – Error Handling2.8 – Metatables2.9 – Environments2.10 – Garbage Collection2.11 – Coroutines 3 – The Application Program Interface 3.1 – The Stack3.2 – Stack Size3.3 – Pseudo-Indices3.4 – C Closures3.5 – Registry3.6 – Error Handling in C3.7 – Functions and Types3.8 – The Debug Interface 4 – The Auxiliary Library 4.1 – Functions and Types 5 – Standard Libraries 5.1 – Basic Functions5.2 – Coroutine Manipulation5.3 – Modules5.4 – String Manipulation5.5 – Table Manipulation5.6 – Mathematical Functions5.7 – Input and Output Facilities5.8 – Operating System Facilities5.9 – The Debug Library 6 – Lua Stand-alone7 – Incompatibilities with the Previous Version 7.1 – Changes in the Language7.2 – Changes in the Libraries7.3 – Changes in the API 8 – The Complete Syntax of Lua