Lua Reference

Introduction

Basic Concepts

Values and Types

Environments and the Global Environment

Error Handling

Metatables and Metamethods

Garbage Collection

Coroutines

The Language

Lexical Conventions

Variables

Statements

Expressions

Visibility Rules

The Application Program Interface

The Stack

Stack Size

Valid and Acceptable Indices

C Closures

Registry

Error Handling in C

Handling Yields in C

Functions and Types

lua_absindex

lua_Alloc

lua_arith

lua_atpanic

lua_call

lua_callk

lua_CFunction

lua_checkstack

lua_close

lua_compare

lua_concat

lua_copy

lua_createtable

lua_dump

lua_error

lua_gc

lua_getallocf

lua_getfield

lua_getextraspace

lua_getglobal

lua_geti

lua_getmetatable

lua_gettable

lua_gettop

lua_getuservalue

lua_insert

lua_Integer

lua_isboolean

lua_iscfunction

lua_isfunction

lua_isinteger

lua_islightuserdata

lua_isnil

lua_isnone

lua_isnoneornil

lua_isnumber

lua_isstring

lua_istable

lua_isthread

lua_isuserdata

lua_isyieldable

lua_KContext

lua_KFunction

lua_len

lua_load

lua_newstate

lua_newtable

lua_newthread

lua_newuserdata

lua_next

lua_Number

lua_numbertointeger

lua_pcall

lua_pcallk

lua_pop

lua_pushboolean

lua_pushcclosure

lua_pushcfunction

lua_pushfstring

lua_pushglobaltable

lua_pushinteger

lua_pushlightuserdata

lua_pushliteral

lua_pushlstring

lua_pushnil

lua_pushnumber

lua_pushstring

lua_pushthread

lua_pushvalue

lua_pushvfstring

lua_rawequal

lua_rawget

lua_rawgeti

lua_rawgetp

lua_rawlen

lua_rawset

lua_rawseti

lua_rawsetp

lua_Reader

lua_register

lua_remove

lua_replace

lua_resume

lua_rotate

lua_setallocf

lua_setfield

lua_setglobal

lua_seti

lua_setmetatable

lua_settable

lua_settop

lua_setuservalue

lua_State

lua_status

lua_stringtonumber

lua_toboolean

lua_tocfunction

lua_tointeger

lua_tointegerx

lua_tolstring

lua_tonumber

lua_tonumberx

lua_topointer

lua_tostring

lua_tothread

lua_touserdata

lua_type

lua_typename

lua_Unsigned

lua_upvalueindex

lua_version

lua_Writer

lua_xmove

lua_yield

lua_yieldk

The Debug Interface

The Auxiliary Library

Functions and Types

Standard Libraries

Basic Functions

Coroutine Manipulation

Modules

String Manipulation

UTF-8 Support

Table Manipulation

Mathematical Functions

Input and Output Facilities

Operating System Facilities

The Debug Library

Lua Standalone

Incompatibilities with the Previous Version

Changes in the Language

Changes in the Libraries

Changes in the API

The Complete Syntax of Lua

Barracuda Manual