lua
美
英 
- 網(wǎng)絡(luò)腳本語言;logical unit application;程序設(shè)計(jì)初步
例句
The Lua language -- like its community -- is robust, inventive, and ready to help.
Lua語言及其社區(qū)非常健壯,具有創(chuàng)新精神,隨時(shí)準(zhǔn)備好提供幫助。
In operating systems where static loading is a necessity, extending the Lua engine to call a C function requires you to rebuild Lua.
在必須使用靜態(tài)加載的操作系統(tǒng)中,可以對(duì)Lua引擎進(jìn)行擴(kuò)充,此時(shí)調(diào)用C函數(shù)時(shí)需要重新編譯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.
該函數(shù)是借助一個(gè)Lua狀態(tài)參數(shù)來調(diào)用的;同樣,C與Lua之間的所有交互都是通過Lua狀態(tài)棧發(fā)生的。
At the heart of the symbiotic relationship between Lua and its host language is a virtual stack.
Lua與宿主語言之間的這種共生關(guān)系的核心是宿主語言是一個(gè)虛擬堆棧。
Before you create yet another configuration file or resource format (and yet another parser to accompany it), try Lua.
在創(chuàng)建另外一個(gè)配置文件或資源格式(以及相應(yīng)的處理程序)之前,請(qǐng)嘗試一下Lua。
Actually, Lua goes to great lengths to make sure that implementation details do not surface to the user.
實(shí)際上,Lua訴諸于極大的長度來確保不會(huì)向用戶顯露實(shí)現(xiàn)細(xì)節(jié)。
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.
Codify由Lua腳本語言構(gòu)建,Lua是一個(gè)廣泛應(yīng)用于游戲的腳本。
Implementing the core logic of a program in Lua, rather than in C, might well dramatically reduce development time.
用Lua而不是C來實(shí)現(xiàn)程序的核心邏輯可以大大減少開發(fā)時(shí)間。
Virtually all the C application program interface (API) for Lua operations operate through the stack.
實(shí)際上在Lua中使用的所有的C應(yīng)用程序編程接口(API)都是通過堆棧來進(jìn)行操作的。
When Lua needs to insert a new key into a table and the hash array is full, Lua does a rehash.
當(dāng)需要向表中插入新鍵且散列數(shù)組是滿的時(shí)候,Lua進(jìn)行一次再散列。
But the reciprocal is true as well: The host language can simultaneously extend Lua.
但是這種融合是雙贏的:宿主語言同時(shí)也可以對(duì)Lua進(jìn)行擴(kuò)充。
Note that every C language call to or about Lua takes a Lua state as an argument; there is no default state.
注意,每個(gè)對(duì)Lua或關(guān)于Lua的C語言調(diào)用都帶有一個(gè)Lua狀態(tài)作為一個(gè)參數(shù);沒有缺省的狀態(tài)。
Indeed, tables are the only data structure in Lua.
實(shí)際上,表是Lua中惟一的數(shù)據(jù)結(jié)構(gòu)。
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森林內(nèi)的一條河邊,是由水腐蝕巖層而形成的天然游泳池。
A metatable is a (normal) Lua table that maps standard operations to custom functions that you provide.
元表是一個(gè)(普通的)Lua表,它將標(biāo)準(zhǔn)操作映射成我們提供的函數(shù)。
It's quite possible to bounce back and forth between Lua and C, as the Lua interpreter is reentrant.
Lua與C之間可以來回嵌套,因?yàn)?/c>Lua解釋器是可重入的(reentrant)。
Lua is probably the fastest of the three languages and usually uses the least amount of runtime memory.
Lua在這三種語言中是運(yùn)行時(shí)速度最快而且占內(nèi)在最少的。
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.
以系統(tǒng)管理員或數(shù)據(jù)庫所有者身份登錄時(shí),創(chuàng)建對(duì)象和編寫代碼要比使用LUA帳戶登錄更容易。
Moreover, any Lua value -- including a function or another table -- can serve as a dictionary element key.
另外,任何Lua值——包括函數(shù)或其他表——都可以用作字典元素的鍵值。
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程序在一個(gè)腳本上調(diào)用解釋器,該腳本調(diào)用一個(gè)C函數(shù),而這個(gè)C函數(shù)又再次使用Lua解釋器,這是允許的。
All Lua applications must be embedded in a host application.
所有的Lua應(yīng)用程序必須要嵌入到宿主應(yīng)用程序中。
Usually, you do not need to know anything about how Lua implement tables to use them.
通常,你不需要為使用表而了解有關(guān)Lua如何實(shí)現(xiàn)它們的任何事。
Beware, however, that Lua can only shrink a table when rehashing it.
注意,無論如何,Lua只能在再散列時(shí)收縮表。
To explore tables, start the Lua interpreter and type the lines shown in bold in Listing 1.
要對(duì)表進(jìn)行瀏覽,請(qǐng)啟動(dòng)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.
如果提供錯(cuò)誤處理程序,那么它應(yīng)該是用于處理任何發(fā)生的錯(cuò)誤的Lua代碼在棧上的索引。
After you've installed Lua on your system, give the stand-alone Lua interpreter a try.
在系統(tǒng)上安裝好Lua之后,我們可以首先來試用一下單獨(dú)的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函數(shù)返回n個(gè)值,那么第一個(gè)值的位置在堆棧的-n處,最后一個(gè)值在堆棧中的位置是-1。
Lua is distributed under the MIT license, and is completely free for any use, including commercial use.
Lua是在MIT許可下發(fā)布的,可完全免費(fèi)用于任何用途,包括商業(yè)用途。
A thread is a co-routine created by calling the built-in function coroutine. create(f), where f is a Lua function.
線程是通過調(diào)用內(nèi)嵌函數(shù)coroutine.create(f)創(chuàng)建的一個(gè)協(xié)同例程(co-routine),其中f是一個(gè)Lua函數(shù)。
In the Thai-Dai chronicle, it is believed that the Lua people are the indigenous people in the Kingdom of Thailand in Southeast Asia.
傳統(tǒng)的傣泰編年史認(rèn)為洛人是東南亞大陸傣泰王國的原住民。
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.
對(duì)高性能代碼和高級(jí)編程的需要進(jìn)行平衡是Lua(一種可嵌入式腳本語言)要解決的問題。
If your operating system supports dynamic loading, Lua can load and call functions on demand.
如果您的操作系統(tǒng)支持動(dòng)態(tài)加載,那么Lua可以根據(jù)需要來動(dòng)態(tài)加載并調(diào)用函數(shù)。
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腳本編寫一些動(dòng)作,而用C代碼管理其他部分。
The implementation of tables in Lua involves some clever algorithms.
Lua中表的實(shí)現(xiàn)涉及一些聰明的算法。
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編寫一個(gè)程序,然后使用嵌入的Lua來存儲(chǔ)和報(bào)告數(shù)據(jù)和配置。
The Lua interpreter uses a stack interface to communicate with calling code.
Lua解釋器使用一個(gè)棧接口來與調(diào)用代碼通信。