Lua
Table of Contents
1. Syntax
1.1. String
- Either inclosed by
',"or the long brackets[=...[ string ]=...]
1.2. Table
- It is an array, dictionary and object combined together.
table = { fields }: Afieldcan beexp: Array.table[i].name = exp: Object.table.name.[exp] = exp: Dictionary.table[exp]
1.3. Operators
#<operand>: Length of the operand.
1.4. Comment
- Prepend with
--. - Enclose with
/* <string> */.
1.5. Definition
1.5.1. Variable
[local] Name [<Attrib>] = exp
1.5.2. Function
function [Name] ( params ) body end