3 <TITLE>Lua:
5.0 reference manual - contents
</TITLE>
6 <BODY BGCOLOR=
"#FFFFFF">
10 <A HREF=
"http://www.lua.org/home.html"><IMG SRC=
"logo.gif" ALT=
"Lua" BORDER=
0></A>
11 Reference manual for Lua
5.0
14 <A HREF=
"manual.html">Lua
5.0 Reference Manual
</A>
16 <A HREF=
"manual.html">top
</A>
18 <A HREF=
"http://www.lua.org/ftp/refman-5.0.ps.gz">ps
</A>
20 <A HREF=
"http://www.lua.org/ftp/refman-5.0.pdf">pdf
</A>
25 <A HREF=
"http://www.lua.org/copyright.html">Copyright
</A>
26 © 2003 Tecgraf, PUC-Rio. All rights reserved.
</SMALL>
30 <LI><A HREF=
"manual.html#1">1 - Introduction
</A>
31 <LI><A HREF=
"manual.html#2">2 - The Language
</A>
33 <LI><A HREF=
"manual.html#2.1">2.1 - Lexical Conventions
</A>
34 <LI><A HREF=
"manual.html#2.2">2.2 - Values and Types
</A>
36 <LI><A HREF=
"manual.html#2.2.1">2.2.1 - Coercion
</A>
38 <LI><A HREF=
"manual.html#2.3">2.3 - Variables
</A>
39 <LI><A HREF=
"manual.html#2.4">2.4 - Statements
</A>
41 <LI><A HREF=
"manual.html#2.4.1">2.4.1 - Chunks
</A>
42 <LI><A HREF=
"manual.html#2.4.2">2.4.2 - Blocks
</A>
43 <LI><A HREF=
"manual.html#2.4.3">2.4.3 - Assignment
</A>
44 <LI><A HREF=
"manual.html#2.4.4">2.4.4 - Control Structures
</A>
45 <LI><A HREF=
"manual.html#2.4.5">2.4.5 - For Statement
</A>
46 <LI><A HREF=
"manual.html#2.4.6">2.4.6 - Function Calls as Statements
</A>
47 <LI><A HREF=
"manual.html#2.4.7">2.4.7 - Local Declarations
</A>
49 <LI><A HREF=
"manual.html#2.5">2.5 - Expressions
</A>
51 <LI><A HREF=
"manual.html#2.5.1">2.5.1 - Arithmetic Operators
</A>
52 <LI><A HREF=
"manual.html#2.5.2">2.5.2 - Relational Operators
</A>
53 <LI><A HREF=
"manual.html#2.5.3">2.5.3 - Logical Operators
</A>
54 <LI><A HREF=
"manual.html#2.5.4">2.5.4 - Concatenation
</A>
55 <LI><A HREF=
"manual.html#2.5.5">2.5.5 - Precedence
</A>
56 <LI><A HREF=
"manual.html#2.5.6">2.5.6 - Table Constructors
</A>
57 <LI><A HREF=
"manual.html#2.5.7">2.5.7 - Function Calls
</A>
58 <LI><A HREF=
"manual.html#2.5.8">2.5.8 - Function Definitions
</A>
62 <LI><A HREF=
"manual.html#2.6">2.6 - Visibility Rules
</A>
63 <LI><A HREF=
"manual.html#2.7">2.7 - Error Handling
</A>
64 <LI><A HREF=
"manual.html#2.8">2.8 - Metatables
</A>
65 <LI><A HREF=
"manual.html#2.9">2.9 - Garbage Collection
</A>
67 <LI><A HREF=
"manual.html#2.9.1">2.9.1 - Garbage-Collection Metamethods
</A>
68 <LI><A HREF=
"manual.html#2.9.2">2.9.2 - Weak Tables
</A>
70 <LI><A HREF=
"manual.html#2.10">2.10 - Coroutines
</A>
72 <LI><A HREF=
"manual.html#3">3 - The Application Program Interface
</A>
74 <LI><A HREF=
"manual.html#3.1">3.1 - States
</A>
75 <LI><A HREF=
"manual.html#3.2">3.2 - The Stack and Indices
</A>
76 <LI><A HREF=
"manual.html#3.3">3.3 - Stack Manipulation
</A>
77 <LI><A HREF=
"manual.html#3.4">3.4 - Querying the Stack
</A>
78 <LI><A HREF=
"manual.html#3.5">3.5 - Getting Values from the Stack
</A>
79 <LI><A HREF=
"manual.html#3.6">3.6 - Pushing Values onto the Stack
</A>
80 <LI><A HREF=
"manual.html#3.7">3.7 - Controlling Garbage Collection
</A>
81 <LI><A HREF=
"manual.html#3.8">3.8 - Userdata
</A>
82 <LI><A HREF=
"manual.html#3.9">3.9 - Metatables
</A>
83 <LI><A HREF=
"manual.html#3.10">3.10 - Loading Lua Chunks
</A>
84 <LI><A HREF=
"manual.html#3.11">3.11 - Manipulating Tables
</A>
85 <LI><A HREF=
"manual.html#3.12">3.12 - Manipulating Environments
</A>
86 <LI><A HREF=
"manual.html#3.13">3.13 - Using Tables as Arrays
</A>
87 <LI><A HREF=
"manual.html#3.14">3.14 - Calling Functions
</A>
88 <LI><A HREF=
"manual.html#3.15">3.15 - Protected Calls
</A>
89 <LI><A HREF=
"manual.html#3.16">3.16 - Defining C Functions
</A>
90 <LI><A HREF=
"manual.html#3.17">3.17 - Defining C Closures
</A>
91 <LI><A HREF=
"manual.html#3.18">3.18 - Registry
</A>
92 <LI><A HREF=
"manual.html#3.19">3.19 - Error Handling in C
</A>
93 <LI><A HREF=
"manual.html#3.20">3.20 - Threads
</A>
95 <LI><A HREF=
"manual.html#4">4 - The Debug Interface
</A>
97 <LI><A HREF=
"manual.html#4.1">4.1 - Stack and Function Information
</A>
98 <LI><A HREF=
"manual.html#4.2">4.2 - Manipulating Local Variables and Upvalues
</A>
99 <LI><A HREF=
"manual.html#4.3">4.3 - Hooks
</A>
101 <LI><A HREF=
"manual.html#5">5 - Standard Libraries
</A>
103 <LI><A HREF=
"manual.html#5.1">5.1 - Basic Functions
</A>
104 <LI><A HREF=
"manual.html#5.2">5.2 - Coroutine Manipulation
</A>
105 <LI><A HREF=
"manual.html#5.3">5.3 - String Manipulation
</A>
106 <LI><A HREF=
"manual.html#5.4">5.4 - Table Manipulation
</A>
107 <LI><A HREF=
"manual.html#5.5">5.5 - Mathematical Functions
</A>
108 <LI><A HREF=
"manual.html#5.6">5.6 - Input and Output Facilities
</A>
109 <LI><A HREF=
"manual.html#5.7">5.7 - Operating System Facilities
</A>
110 <LI><A HREF=
"manual.html#5.8">5.8 - The Reflexive Debug Interface
</A>
112 <LI><A HREF=
"manual.html#6">6 - Lua Stand-alone
</A>
113 <LI><A HREF=
"manual.html#BNF">The Complete Syntax of Lua
</A>
119 Wed May
7 18:
34:
34 EST
2003