Line 9 creates a Lua state.
第9行创建了一个Lua状态。
Lua is a small scripting language.
Lua是一种小型脚本语言。
You've embedded Lua.
您已经嵌入了Lua。
A chunk is any sequence of Lua statements.
块可以是任何lua语句序列。
Indeed, tables are the only data structure in Lua.
实际上,表是Lua中惟一的数据结构。
Otherwise, you have a valid Lua interpreter state.
否则,就有了一个有效的Lua解释器状态。
Tables are the catch-all data structure in Lua.
在 Lua 中,表是用来保存所有数据的结构。
wxLua is a binding for the Lua programming language.
wxLua 是 Lua 编程语言的一种绑定。
As of Lua 5.1, the garbage collector works incrementally.
在Lua 5.1中,垃圾收集器是以增量方式工作的。
The inverse -- calling a C function from Lua -- is similar.
反之,在 Lua 中调用 C 函数也与之类似。
All Lua applications must be embedded in a host application.
所有的Lua应用程序必须要嵌入到宿主应用程序中。
C functions can call Lua functions and vice versa, for example.
举例来说,c函数可以调用lua函数,反之亦然。
A chunk can be stored in a file or in a string in a Lua program.
块可以保存到文件中,或者保存到Lua程序中的字符串中。
There is no huge suite of autoconf tests; Lua sticks to the standard.
Lua 无需进行大量的 autoconf 测试,因为它严格遵从标准。
Get the Lua 5.0.2 or Lua 5.1 source code to build Lua from scratch.
下载Lua 5.0.2或Lua 5.1源代码,从头开始编译lua。
If an error occurs during execution, a Lua string is pushed on the stack.
如果在执行时出现了错误,就向堆栈中压入一个lua字符串。
Because functions are just values in Lua, this creates a callable function.
由于函数在Lua中就是值,所以这实际上就是创建一个回调函数。
The Lua interpreter USES a stack interface to communicate with calling code.
Lua解释器使用一个栈接口来与调用代码通信。
At the Lua-users wiki, browse a variety of pre-built, installable Lua binaries.
在Lua - users wiki上,浏览很多预先构建的、可安装的lua二进制文件。
As has been intimated, Lua scripts can extend the host language's own capabilities.
由于Lua与宿主语言的关系非常密切,因此lua脚本可以对宿主语言的功能进行扩充。
But the reciprocal is true as well: the host language can simultaneously extend Lua.
但是这种融合是双赢的:宿主语言同时也可以对Lua进行扩充。
The Lua language offers many other powerful features, and all of them are well documented.
Lua语言提供了很多其他功能强大的特性,所有这些特性都有很好的文档进行介绍。
After you've installed Lua on your system, give the stand-alone Lua interpreter a try.
在系统上安装好Lua之后,我们可以首先来试用一下单独的Lua解释器。
To explore tables, start the Lua interpreter and type the lines shown in bold in Listing 1.
要对表进行浏览,请启动Lua解释器,并输入清单1中的黑体显示的代码。
If you use Debian Linux, you can install Lua 5.0 quickly and easily by running this command.
如果您使用的是Debian Linux,那么可以以超级用户的身份运行下面的命令来快速安装Lua 5.0。
You use lua_pushcfunction() to convert a C function pointer into an internal Lua object.
可以使用 lua_pushcfunction() 将一个 C 函数指针转换成一个内部 Lua 对象。
If your operating system supports dynamic loading, Lua can load and call functions on demand.
如果您的操作系统支持动态加载,那么Lua可以根据需要来动态加载并调用函数。
When a Lua program is executed, it is translated into bytecodes, and then executed in the VM.
当执行一个Lua程序时,将其翻译成bytecodes,然后在VM中执行。
With Lua, the development cycle is more akin to "Code, Build, Run, Script, Script, Script...".
使用Lua,开发周期就非常类似于“编码、编译、运行、编写脚本、编写脚本、编写脚本…”。
The lua_pcall() function takes three arguments other than the Lua state it is to operate on.
除了要在其上面进行操作的 Lua 状态外,lua_pcall() 函数还带有 3 个参数。