Next:
About this document
Up:
Reference Manual of the
Previous:
Index
Contents
1 Introduction
2 Environment and Chunks
3 Types
4 The Language
4.1 Lexical Conventions
4.2 Coercion
4.3 Adjustment
4.4 Statements
4.4.1 Blocks
4.4.2 Assignment
4.4.3 Control Structures
4.4.4 Function Calls as Statements
4.4.5 Local Declarations
4.5 Expressions
4.5.1 Simple Expressions
4.5.2 Arithmetic Operators
4.5.3 Relational Operators
4.5.4 Logical Operators
4.5.5 Concatenation
4.5.6 Precedence
4.5.7 Table Constructors
4.5.8 Function Calls
4.6 Function Definitions
4.7 Fallbacks
4.8 Error Handling
5 The Application Program Interface
5.1 Executing Lua Code
5.2 Converting Values between C and Lua
5.3 Manipulating Lua Objects
5.4 Calling Lua Functions
5.5 C Functions
5.6 References to Lua Objects
6 Predefined Functions and Libraries
6.1 Predefined Functions
dofile (filename)
dostring (string)
next (table, index)
nextvar (name)
tostring (e)
print (e1, e2, ...)
tonumber (e)
type (v)
assert (v)
error (message)
setglobal (name, value)
getglobal (name)
setfallback (fallbackname, newfallback)
6.2 String Manipulation
strfind (str, substr, [init, [end]])
strlen (s)
strsub (s, i, [j])
strlower (s)
strupper (s)
ascii (s, [i])
format (formatstring, e1, e2, ...)
6.3 Mathematical Functions
6.4 I/O Facilities
readfrom (filename)
writeto (filename)
appendto (filename)
remove (filename)
rename (name1, name2)
tmpname ()
read ([format])
readuntil (char)
write (value, [format])
date ([format])
exit ([code])
7 The Debuger Interface
7.1 Stack and Function Information
7.2 Manipulating Local Variables
7.3 Hooks
8 Some Examples
8.1 Data Structures
8.2 The Functions next and nextvar
8.3 Manipulating Strings
8.4 Variable number of arguments
8.5 Persistence
8.6 Inheritance
8.7 Programming with Classes
8.8 Modules
8.9 A CFunction
8.10 Calling Lua Functions from C
Acknowledgments
Incompatibilities with Previous Versions
Incompatibilities with version 2.2
Incompatibilities with version 2.1
Incompatibilities with version 1.1
Index
About this document ...
Next:
About this document
Up:
Reference Manual of the
Previous:
Index