⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 contents.html

📁 Lua is a powerful, fast, lightweight, embeddable scripting language. Lua combines simple procedura
💻 HTML
📖 第 1 页 / 共 2 页
字号:
<HTML><HEAD><TITLE>Lua 5.1 reference manual - contents</TITLE><LINK REL="stylesheet" TYPE="text/css" HREF="lua.css"></HEAD><BODY BGCOLOR="#FFFFFF"><HR><H1><A HREF="http://www.lua.org/"><IMG SRC="logo.gif" ALT="Lua" BORDER=0></A>Lua 5.1 Reference Manual</H1><SMALL><A HREF="http://www.lua.org/copyright.html">Copyright</A>&copy; 2006 Lua.org, PUC-Rio.  All rights reserved.</SMALL><HR><H2>Contents</H2><UL><LI><A HREF="#quick">Quick index</A><P><LI><A HREF="manual.html">Top</A><LI><A HREF="manual.html#1">1 - Introduction</A><LI><A HREF="manual.html#2">2 - The Language</A><UL><LI><A HREF="manual.html#2.1">2.1 - Lexical Conventions</A><LI><A HREF="manual.html#2.2">2.2 - Values and Types</A><UL><LI><A HREF="manual.html#2.2.1">2.2.1 - Coercion</A></UL><LI><A HREF="manual.html#2.3">2.3 - Variables</A><LI><A HREF="manual.html#2.4">2.4 - Statements</A><UL><LI><A HREF="manual.html#2.4.1">2.4.1 - Chunks</A><LI><A HREF="manual.html#2.4.2">2.4.2 - Blocks</A><LI><A HREF="manual.html#2.4.3">2.4.3 - Assignment</A><LI><A HREF="manual.html#2.4.4">2.4.4 - Control Structures</A><LI><A HREF="manual.html#2.4.5">2.4.5 - For Statement</A><LI><A HREF="manual.html#2.4.6">2.4.6 - Function Calls as Statements</A><LI><A HREF="manual.html#2.4.7">2.4.7 - Local Declarations</A></UL><LI><A HREF="manual.html#2.5">2.5 - Expressions</A><UL><LI><A HREF="manual.html#2.5.1">2.5.1 - Arithmetic Operators</A><LI><A HREF="manual.html#2.5.2">2.5.2 - Relational Operators</A><LI><A HREF="manual.html#2.5.3">2.5.3 - Logical Operators</A><LI><A HREF="manual.html#2.5.4">2.5.4 - Concatenation</A><LI><A HREF="manual.html#2.5.5">2.5.5 - The Length Operator</A><LI><A HREF="manual.html#2.5.6">2.5.6 - Precedence</A><LI><A HREF="manual.html#2.5.7">2.5.7 - Table Constructors</A><LI><A HREF="manual.html#2.5.8">2.5.8 - Function Calls</A><LI><A HREF="manual.html#2.5.9">2.5.9 - Function Definitions</A></UL><LI><A HREF="manual.html#2.6">2.6 - Visibility Rules</A><LI><A HREF="manual.html#2.7">2.7 - Error Handling</A><LI><A HREF="manual.html#2.8">2.8 - Metatables</A><LI><A HREF="manual.html#2.9">2.9 - Environments</A><LI><A HREF="manual.html#2.10">2.10 - Garbage Collection</A><UL><LI><A HREF="manual.html#2.10.1">2.10.1 - Garbage-Collection Metamethods</A><LI><A HREF="manual.html#2.10.2">2.10.2 - Weak Tables</A></UL><LI><A HREF="manual.html#2.11">2.11 - Coroutines</A></UL><LI><A HREF="manual.html#3">3 - The Application Program Interface</A><UL><LI><A HREF="manual.html#3.1">3.1 - The Stack</A><LI><A HREF="manual.html#3.2">3.2 - Stack Size</A><LI><A HREF="manual.html#3.3">3.3 - Pseudo-Indices</A><LI><A HREF="manual.html#3.4">3.4 - C Closures</A><LI><A HREF="manual.html#3.5">3.5 - Registry</A><LI><A HREF="manual.html#3.6">3.6 - Error Handling in C</A><LI><A HREF="manual.html#3.7">3.7 - Functions and Types</A><LI><A HREF="manual.html#3.8">3.8 - The Debug Interface</A></UL><LI><A HREF="manual.html#4">4 - The Auxiliary Library</A><UL><LI><A HREF="manual.html#4.1">4.1 - Functions and Types</A></UL><LI><A HREF="manual.html#5">5 - Standard Libraries</A><UL><LI><A HREF="manual.html#5.1">5.1 - Basic Functions</A><LI><A HREF="manual.html#5.2">5.2 - Coroutine Manipulation</A><LI><A HREF="manual.html#5.3">5.3 - Modules</A><LI><A HREF="manual.html#5.4">5.4 - String Manipulation</A><LI><A HREF="manual.html#5.5">5.5 - Table Manipulation</A><LI><A HREF="manual.html#5.6">5.6 - Mathematical Functions</A><LI><A HREF="manual.html#5.7">5.7 - Input and Output Facilities</A><LI><A HREF="manual.html#5.8">5.8 - Operating System Facilities</A><LI><A HREF="manual.html#5.9">5.9 - The Debug Library</A></UL><LI><A HREF="manual.html#6">6 - Lua Stand-alone</A><LI><A HREF="manual.html#incompat">Incompatibilities with the Previous Version</A><LI><A HREF="manual.html#BNF">The Complete Syntax of Lua</A></UL><H2><A NAME="quick">Quick index</A></H2><TABLE><TR VALIGN="top"><TD WIDTH="35%"><H3><A NAME="functions">Functions</A></H3><A HREF="manual.html#pdf-_G">_G</A><BR><A HREF="manual.html#pdf-_VERSION">_VERSION</A><BR><A HREF="manual.html#pdf-assert">assert</A><BR><A HREF="manual.html#pdf-collectgarbage">collectgarbage</A><BR><A HREF="manual.html#pdf-coroutine.create">coroutine.create</A><BR><A HREF="manual.html#pdf-coroutine.resume">coroutine.resume</A><BR><A HREF="manual.html#pdf-coroutine.running">coroutine.running</A><BR><A HREF="manual.html#pdf-coroutine.status">coroutine.status</A><BR><A HREF="manual.html#pdf-coroutine.wrap">coroutine.wrap</A><BR><A HREF="manual.html#pdf-coroutine.yield">coroutine.yield</A><BR><A HREF="manual.html#pdf-debug.debug">debug.debug</A><BR><A HREF="manual.html#pdf-debug.getfenv">debug.getfenv</A><BR><A HREF="manual.html#pdf-debug.gethook">debug.gethook</A><BR><A HREF="manual.html#pdf-debug.getinfo">debug.getinfo</A><BR><A HREF="manual.html#pdf-debug.getlocal">debug.getlocal</A><BR><A HREF="manual.html#pdf-debug.getmetatable">debug.getmetatable</A><BR><A HREF="manual.html#pdf-debug.getregistry">debug.getregistry</A><BR><A HREF="manual.html#pdf-debug.getupvalue">debug.getupvalue</A><BR><A HREF="manual.html#pdf-debug.setfenv">debug.setfenv</A><BR><A HREF="manual.html#pdf-debug.sethook">debug.sethook</A><BR><A HREF="manual.html#pdf-debug.setlocal">debug.setlocal</A><BR><A HREF="manual.html#pdf-debug.setmetatable">debug.setmetatable</A><BR><A HREF="manual.html#pdf-debug.setupvalue">debug.setupvalue</A><BR><A HREF="manual.html#pdf-debug.traceback">debug.traceback</A><BR><A HREF="manual.html#pdf-dofile">dofile</A><BR><A HREF="manual.html#pdf-error">error</A><BR><A HREF="manual.html#pdf-file:close">file:close</A><BR><A HREF="manual.html#pdf-file:flush">file:flush</A><BR><A HREF="manual.html#pdf-file:lines">file:lines</A><BR><A HREF="manual.html#pdf-file:read">file:read</A><BR><A HREF="manual.html#pdf-file:seek">file:seek</A><BR><A HREF="manual.html#pdf-file:setvbuf">file:setvbuf</A><BR><A HREF="manual.html#pdf-file:write">file:write</A><BR><A HREF="manual.html#pdf-getfenv">getfenv</A><BR><A HREF="manual.html#pdf-getmetatable">getmetatable</A><BR><A HREF="manual.html#pdf-io.close">io.close</A><BR><A HREF="manual.html#pdf-io.flush">io.flush</A><BR><A HREF="manual.html#pdf-io.input">io.input</A><BR><A HREF="manual.html#pdf-io.lines">io.lines</A><BR><A HREF="manual.html#pdf-io.open">io.open</A><BR><A HREF="manual.html#pdf-io.output">io.output</A><BR><A HREF="manual.html#pdf-io.popen">io.popen</A><BR><A HREF="manual.html#pdf-io.read">io.read</A><BR><A HREF="manual.html#pdf-io.tmpfile">io.tmpfile</A><BR><A HREF="manual.html#pdf-io.type">io.type</A><BR><A HREF="manual.html#pdf-io.write">io.write</A><BR><A HREF="manual.html#pdf-ipairs">ipairs</A><BR><A HREF="manual.html#pdf-load">load</A><BR><A HREF="manual.html#pdf-loadfile">loadfile</A><BR><A HREF="manual.html#pdf-loadstring">loadstring</A><BR><A HREF="manual.html#pdf-math.abs">math.abs</A><BR><A HREF="manual.html#pdf-math.acos">math.acos</A><BR><A HREF="manual.html#pdf-math.asin">math.asin</A><BR><A HREF="manual.html#pdf-math.atan2">math.atan2</A><BR><A HREF="manual.html#pdf-math.atan">math.atan</A><BR><A HREF="manual.html#pdf-math.ceil">math.ceil</A><BR><A HREF="manual.html#pdf-math.cosh">math.cosh</A><BR><A HREF="manual.html#pdf-math.cos">math.cos</A><BR><A HREF="manual.html#pdf-math.deg">math.deg</A><BR><A HREF="manual.html#pdf-math.exp">math.exp</A><BR><A HREF="manual.html#pdf-math.floor">math.floor</A><BR><A HREF="manual.html#pdf-math.fmod">math.fmod</A><BR><A HREF="manual.html#pdf-math.frexp">math.frexp</A><BR><A HREF="manual.html#pdf-math.ldexp">math.ldexp</A><BR><A HREF="manual.html#pdf-math.log10">math.log10</A><BR><A HREF="manual.html#pdf-math.log">math.log</A><BR><A HREF="manual.html#pdf-math.max">math.max</A><BR><A HREF="manual.html#pdf-math.min">math.min</A><BR><A HREF="manual.html#pdf-math.modf">math.modf</A><BR><A HREF="manual.html#pdf-math.pow">math.pow</A><BR><A HREF="manual.html#pdf-math.rad">math.rad</A><BR><A HREF="manual.html#pdf-math.random">math.random</A><BR><A HREF="manual.html#pdf-math.randomseed">math.randomseed</A><BR><A HREF="manual.html#pdf-math.sinh">math.sinh</A><BR><A HREF="manual.html#pdf-math.sin">math.sin</A><BR><A HREF="manual.html#pdf-math.sqrt">math.sqrt</A><BR><A HREF="manual.html#pdf-math.tanh">math.tanh</A><BR><A HREF="manual.html#pdf-math.tan">math.tan</A><BR><A HREF="manual.html#pdf-module">module</A><BR><A HREF="manual.html#pdf-next">next</A><BR><A HREF="manual.html#pdf-os.clock">os.clock</A><BR><A HREF="manual.html#pdf-os.date">os.date</A><BR><A HREF="manual.html#pdf-os.difftime">os.difftime</A><BR><A HREF="manual.html#pdf-os.execute">os.execute</A><BR><A HREF="manual.html#pdf-os.exit">os.exit</A><BR><A HREF="manual.html#pdf-os.getenv">os.getenv</A><BR><A HREF="manual.html#pdf-os.remove">os.remove</A><BR><A HREF="manual.html#pdf-os.rename">os.rename</A><BR><A HREF="manual.html#pdf-os.setlocale">os.setlocale</A><BR><A HREF="manual.html#pdf-os.time">os.time</A><BR><A HREF="manual.html#pdf-os.tmpname">os.tmpname</A><BR><A HREF="manual.html#pdf-package.cpath">package.cpath</A><BR><A HREF="manual.html#pdf-package.loaded">package.loaded</A><BR><A HREF="manual.html#pdf-package.loadlib">package.loadlib</A><BR><A HREF="manual.html#pdf-package.path">package.path</A><BR><A HREF="manual.html#pdf-package.preload">package.preload</A><BR><A HREF="manual.html#pdf-package.seeall">package.seeall</A><BR><A HREF="manual.html#pdf-pairs">pairs</A><BR>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -