Lua Programming/How to Lua
From Wikibooks, open books for an open world
- __add
- __concat
- __call
- __div
- __eq
- __index
- __le
- __len
- __lt
- __mul
- __newindex
- __pow
- __sub
- __tostring
- __unm
- _G
- anonymous subroutines
- arg
- argc
- argv
- arithmetic
- arrays
- ASCII
- assert
- assignment
- associativity
- backslash
- bareblocks
- begin blocks
- bitlib
- bitwise operators
- blocks
- boolean truth
- boxes
- braces
- brackets
- branches
- builtin functions
- callback functions
- case conversion
- case sensitivity
- caveats
- child
- class
- classlib
- coercion
- collectgarbage
- colon
- combination assignment operators
- comma
- command line parameters
- comments
- comparative operators
- concatenation
- conditional branches
- conditional compilation
- conditional loops
- constructor
- context
- control statements
- control structures
- conversion
- converting statements into expressions
- coroutine
- creating filehandles
- datatypes
- declaration
- default variable
- define functions
- delimiters
- destructors
- disable functions and operators
- do
- dofile
- dot
- doublequotes
- empty statements
- encryption
- end
- enumeration
- error function
- error handling
- escape sequences
- expressions
- false
- filehandles
- floating point numbers
- for loops
- foreach loops
- functions
- getfenv
- gettable_event
- gettag
- gettagmethod
- getmetatable
- global variables
- goto
- grouping arguments
- hashbang
- hash
- hello world
- here documents
- identifiers
- if conditionals
- in
- inclusion
- infinite loops
- inheritance
- input
- instructions
- internals
- interpolation
- ipairs
- iterator
- iterative loops
- invoking a Lua program
- keywords
- labels
- length operator
- libraries
- lists
- literal character substitution
- literal strings
- load
- loadfile
- loadstring
- local variables
- locale
- loops
- loop modifiers
- luac
- mathematical functions
- main block
- metacharacters
- metadata
- metamethod
- metatable
- methods
- mistakes
- module function
- multiple branch conditionals
- namespaces
- nestedloops
- nil
- nudge operators
- numbers
- number conversion
- numeric comparison
- objects
- object oriented programming
- obtaining the result of a function or command
- operators
- operator precedence
- operator associativity
- output
- output a simple string
- output a variable
- overloading functions
- overriding operators
- packed strings
- pairs
- parameters
- parent
- parentheses
- password strings
- pattern matching
- pcall
- percent symbol
- plus
- pointers
- precedence
- preprocessor
- prototypes
- quotation marks
- read
- references
- regular expressions
- repeat
- require
- scope
- screen handling
- setfenv
- setmetatable
- settag
- settagmethod
- sigil
- singlequotes
- special variables
- squiggly braces
- starting the program
- statements
- STDERR
- STDIN
- STDOUT
- string comparison
- string conversion
- string formatting
- string library
- string manipulation
- strings
- structures
- subroutines
- substitution
- switch conditionals
- symbols
- syntax
- system commands
- system variables
- table
- table constructor
- tag
- tagmethod
- temporary variables
- ternary operator
- thread
- to
- tonumber
- true
- truth
- type
- underscore
- until loops
- upvalues
- userdata
- values
- variables
- variable names
- variable assignment
- variable context
- virtualization
- Working with ASCII
- Working with files
- Working with Unicode
- while loops
- whitespace
- write
- yield