lua

lua

 英

  • 网络脚本语言;logical unit application;程序设计初步

例句

The Lua language -- like its community -- is robust, inventive, and ready to help.

Lua语言及其社区非常健壮具有创新精神随时准备好提供帮助

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

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状态参数调用同样CLua之间所有交互通过Lua状态发生

At the heart of the symbiotic relationship between Lua and its host language is a virtual stack.

Lua宿主语言之间这种共生关系核心宿主语言一个虚拟堆栈

Before you create yet another configuration file or resource format (and yet another parser to accompany it), try Lua.

创建另外一个配置文件资源格式以及相应处理程序之前尝试一下Lua

Actually, Lua goes to great lengths to make sure that implementation details do not surface to the user.

实际上Lua诉诸极大长度确保不会用户显露实现细节

As the Thai-Dai people settled in the rich river valley, they took over the control upon the Lua indigenous people.

定居肥沃河谷低地以后政治控制原住民

Codify is built upon the Lua scripting language, a widely used scripting mechanism used in games.

CodifyLua脚本语言构建Lua一个广泛应用游戏脚本

Implementing the core logic of a program in Lua, rather than in C, might well dramatically reduce development time.

Lua不是C实现程序核心逻辑可以大大减少开发时间

Virtually all the C application program interface (API) for Lua operations operate through the stack.

实际上Lua使用所有C应用程序编程接口API通过堆栈进行操作

When Lua needs to insert a new key into a table and the hash array is full, Lua does a rehash.

需要插入列数组时候Lua进行一次

But the reciprocal is true as well: The host language can simultaneously extend Lua.

但是这种融合双赢宿主语言同时可以Lua进行扩充

Note that every C language call to or about Lua takes a Lua state as an argument; there is no default state.

注意每个Lua关于LuaC语言调用带有一个Lua状态作为一个参数没有缺省状态

Indeed, tables are the only data structure in Lua.

实际上Lua惟一数据结构

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森林腐蚀岩层形成天然游泳池

A metatable is a (normal) Lua table that maps standard operations to custom functions that you provide.

元表一个普通Lua标准操作映射我们提供函数

It's quite possible to bounce back and forth between Lua and C, as the Lua interpreter is reentrant.

LuaC之间可以来回因为Lua解释器reentrant)。

Lua is probably the fastest of the three languages and usually uses the least amount of runtime memory.

Lua语言运行时速度而且内在最少

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帐户登录容易

Moreover, any Lua value -- including a function or another table -- can serve as a dictionary element key.

另外任何Lua——包括函数其他——可以用作字典元素

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解释允许

All Lua applications must be embedded in a host application.

所有Lua应用程序必须嵌入宿主应用程序

Usually, you do not need to know anything about how Lua implement tables to use them.

通常需要使用了解有关Lua如何实现它们任何事

Beware, however, that Lua can only shrink a table when rehashing it.

注意无论如何Lua只能收缩

To explore tables, start the Lua interpreter and type the lines shown in bold in Listing 1.

进行浏览启动Lua解释器输入清单1黑体显示代码

Lua would be Wicca - A pantheistic language that can easily be adapted for different cultures and locations.

LUA威卡---一种泛神论语言容易不同文化地域人群接受

The error handler, if one is provided, is the index on the stack of the Lua code to handle any errors that occur.

如果提供错误处理程序那么应该用于处理任何发生错误Lua代码栈上索引

After you've installed Lua on your system, give the stand-alone Lua interpreter a try.

系统安装Lua之后我们可以首先试用一下单独Lua解释器

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。

Lua is distributed under the MIT license, and is completely free for any use, including commercial use.

LuaMIT许可发布完全免费用于任何用途包括商业用途

A thread is a co-routine created by calling the built-in function coroutine. create(f), where f is a Lua function.

线程通过调用内嵌函数coroutine.create(f创建一个协同(co-routine),其中f一个Lua函数

In the Thai-Dai chronicle, it is believed that the Lua people are the indigenous people in the Kingdom of Thailand in Southeast Asia.

传统编年史认为东南亚大陆王国原住民

A chunk can be stored in a file or in a string in a Lua program.

可以保存文件或者保存Lua程序字符串

If you want to start writing some top-level logic in Lua, though, it's very easy and efficient to do so.

如果开始Lua编写逻辑容易并且非常有效

Balancing the need for high-performance code and high-level programming is the purview of Lua, an embeddable scripting language.

高性能代码高级编程需要进行平衡Lua一种嵌入式脚本语言解决问题

If your operating system supports dynamic loading, Lua can load and call functions on demand.

如果操作系统支持动态加载那么Lua可以根据需要动态加载调用函数

The third, and most flexible, is to mix and match these approaches, using Lua to script some actions, and code in C to manage others.

第三方式也是灵活方式混合上述方式使用Lua脚本编写一些动作C代码管理其他部分

The implementation of tables in Lua involves some clever algorithms.

Lua实现涉及一些聪明算法

The second is to write a program primarily in C, then use embedded Lua as a way to store and report data and configuration.

第二方法主要C编写一个程序然后使用嵌入Lua存储报告数据配置

The Lua interpreter uses a stack interface to communicate with calling code.

Lua解释使用一个接口调用代码通信