rawget (table, index)table[index]__indextableindex
print (···)stdouttostringprint
coroutine.wrap (f) Creates a new coroutine, with body f. f must be a function. Returns a function that resumes the coroutine each time it is called.
lua_CFunction typedef int (*lua_CFunction) (lua_State *L); Type for C functions. In order to communicate properly with Lua
lua_error[-1, +0, v] int lua_error (lua_State *L); Generates a Lua error, using the value at the
3.4.1 – Arithmetic Operators Lua supports the following arithmetic operators: +: addition -: subtraction *:
string.dump (function [, strip]) Returns a string containing a binary representation (a binary chunk) of the given function, so that a later
luaL_newlib[-0, +1, m] void luaL_newlib (lua_State *L, const luaL_Reg l[]); Creates a new table
io.flush () Equivalent to io.output():flush().
3.3.7 – Local Declarations Local variables can be declared anywhere inside a block. The declaration can include an initial assignment: stat ::= local
Page 2 of 36