lua
- 网络脚本语言;logical unit application;程序设计初步
lua
lua
脚本语言
1.使用轻型脚本语言(Lua),扩展了中文支持,大量内置扩展函数库,降低游戏制作门槛.2.方便外接各种插件,支持纯中文易语言DLL, …
logical unit application
Logical unit application (LUA) is an application programming interface (API) that allows you to write customized applicatio...
程序设计初步
LUA语言入门_百度知道 ... LUA 脚本语言入门(纯粹转帖,仅供参考) Lua 程序设计初步 II. Lua 编程 ...
1
The Lua language -- like its community -- is robust, inventive, and ready to help.
Lua语言及其社区非常健壮,具有创新精神,随时准备好提供帮助。
2
In operating systems where static loading is a necessity, extending the Lua engine to call a C function requires you to rebuild Lua.
在必须使用静态加载的操作系统中,可以对Lua引擎进行扩充,此时调用C函数时需要重新编译Lua。
3
The function is called with a Lua state argument; once again, all interaction between C and Lua occurs through the stack of the Lua state.
该函数是借助一个Lua状态参数来调用的;同样,C与Lua之间的所有交互都是通过Lua状态栈发生的。
4
At the heart of the symbiotic relationship between Lua and its host language is a virtual stack.
Lua与宿主语言之间的这种共生关系的核心是宿主语言是一个虚拟堆栈。
5
Before you create yet another configuration file or resource format (and yet another parser to accompany it), try Lua.
在创建另外一个配置文件或资源格式(以及相应的处理程序)之前,请尝试一下Lua。
6
Actually, Lua goes to great lengths to make sure that implementation details do not surface to the user.
实际上,Lua诉诸于极大的长度来确保不会向用户显露实现细节。
7
As the Thai-Dai people settled in the rich river valley, they took over the control upon the Lua indigenous people.
傣泰人定居于肥沃的河谷低地以后,政治上控制了洛人原住民。
8
Codify is built upon the Lua scripting language, a widely used scripting mechanism used in games.
Codify由Lua脚本语言构建,Lua是一个广泛应用于游戏的脚本。
9
Implementing the core logic of a program in Lua, rather than in C, might well dramatically reduce development time.
用Lua而不是C来实现程序的核心逻辑可以大大减少开发时间。
10
Virtually all the C application program interface (API) for Lua operations operate through the stack.
实际上在Lua中使用的所有的C应用程序编程接口(API)都是通过堆栈来进行操作的。
11
When Lua needs to insert a new key into a table and the hash array is full, Lua does a rehash.
当需要向表中插入新键且散列数组是满的时候,Lua进行一次再散列。
12
But the reciprocal is true as well: The host language can simultaneously extend Lua.
但是这种融合是双赢的:宿主语言同时也可以对Lua进行扩充。
13
Note that every C language call to or about Lua takes a Lua state as an argument; there is no default state.
注意,每个对Lua或关于Lua的C语言调用都带有一个Lua状态作为一个参数;没有缺省的状态。
14
Indeed, tables are the only data structure in Lua.
实际上,表是Lua中惟一的数据结构。
15
Vale da Lua (Moon Valley) is a water eroded rock formation with natural swimming pools, placed on a river in the brazilian cerrado forest.
月亮谷位于巴西cerrado森林内的一条河边,是由水腐蚀岩层而形成的天然游泳池。
16
A metatable is a (normal) Lua table that maps standard operations to custom functions that you provide.
元表是一个(普通的)Lua表,它将标准操作映射成我们提供的函数。
17
It's quite possible to bounce back and forth between Lua and C, as the Lua interpreter is reentrant.
Lua与C之间可以来回嵌套,因为Lua解释器是可重入的(reentrant)。
18
Lua is probably the fastest of the three languages and usually uses the least amount of runtime memory.
Lua在这三种语言中是运行时速度最快而且占内在最少的。
19
It is easier to create objects and write code while logged on as a system administrator or database owner than it is using a LUA account.
以系统管理员或数据库所有者身份登录时,创建对象和编写代码要比使用LUA帐户登录更容易。
20
Moreover, any Lua value -- including a function or another table -- can serve as a dictionary element key.
另外,任何Lua值——包括函数或其他表——都可以用作字典元素的键值。
21
If your C program invokes the Lua interpreter on a script, which calls a C function, which then uses the Lua interpreter again, that's okay.
如果C程序在一个脚本上调用解释器,该脚本调用一个C函数,而这个C函数又再次使用Lua解释器,这是允许的。
22
All Lua applications must be embedded in a host application.
所有的Lua应用程序必须要嵌入到宿主应用程序中。
23
Usually, you do not need to know anything about how Lua implement tables to use them.
通常,你不需要为使用表而了解有关Lua如何实现它们的任何事。
24
Beware, however, that Lua can only shrink a table when rehashing it.
注意,无论如何,Lua只能在再散列时收缩表。
25
To explore tables, start the Lua interpreter and type the lines shown in bold in Listing 1.
要对表进行浏览,请启动Lua解释器,并输入清单1中的黑体显示的代码。
26
Lua would be Wicca - A pantheistic language that can easily be adapted for different cultures and locations.
LUA是威卡教---一种泛神论语言,很容易被不同文化和地域的人群所接受。
27
The error handler, if one is provided, is the index on the stack of the Lua code to handle any errors that occur.
如果提供错误处理程序,那么它应该是用于处理任何发生的错误的Lua代码在栈上的索引。
28
After you've installed Lua on your system, give the stand-alone Lua interpreter a try.
在系统上安装好Lua之后,我们可以首先来试用一下单独的Lua解释器。
29
If a Lua function returns n values, the first value is at location -n in the stack, and the last value is at position -1.
如果Lua函数返回n个值,那么第一个值的位置在堆栈的-n处,最后一个值在堆栈中的位置是-1。
30
Lua is distributed under the MIT license, and is completely free for any use, including commercial use.
Lua是在MIT许可下发布的,可完全免费用于任何用途,包括商业用途。