3.4.1 – Arithmetic Operators Lua supports the following arithmetic operators: +: addition -: subtraction *:
luaL_setfuncs[-nup, +0, m] void luaL_setfuncs (lua_State *L, const luaL_Reg *l, int nup); Registers
dofile ([filename])dofilestdindofiledofile
coroutine.yield (···) Suspends the execution of the calling coroutine. Any arguments to yield are passed as extra results to resume.
3.4.9 – Table Constructors Table constructors are expressions that create tables. Every time a constructor is evaluated, a new table is created. A constructor can be used to create an empty
luaL_checknumber[-0, +0, v] lua_Number luaL_checknumber (lua_State *L, int arg); Checks whether
lua_close[-0, +0, –] void lua_close (lua_State *L); Destroys all objects in the given Lua state (calling
lua_gc[-0, +0, m] int lua_gc (lua_State *L, int what, int data); Controls the garbage collector
string.upper (s)
3.3.7 – Local Declarations Local variables can be declared anywhere inside a block. The declaration can include an initial assignment: stat ::= local
Page 8 of 36