Source: http://www.cppblog.com/Leaf/archive/2009/05/16/83145.html
It is said that the author of this article is ogdev's hack master.
Use examples to learn about Lua (1) ---- Hello World
1. PrefaceThe scripting language is indispensable in
As an Embedded Language, Lua provides a complete c api for Lua code to interact with the host program. Of course, the host language should be C or C ++. For other languages, for example, embedding Lua in the mono environment that has been popular
OpenResty (nginx + lua)OpenResty Official Website: http://openresty.org/OpenResty is a nginx and its various third-party modules of a packaged software platform. The most important thing is that it packs lua/luajit so that we can use the lua script
--------------------------------------------------------------------------------------------------------------- --------------------------------------------------------------------------Like my blog Please remember my name: Qin Yuanpei , my blog
First, the basic knowledge:
1. First Program and function:in the current learning phase, the best way to run a LUA program is through LUA's own interpreter programs, such as:
Copy Code code as follows:
/> Lua
> Print ("Hello World")
IntroductionCity Wizard Go (http://csjl.teamtop3.com/) is a cocos2d-x-based lbs social game, through the exploration of real maps, discovering and capturing hidden wild Elves, using the game's rich gameplay to enhance and evolve their own elves team,
Application of Lua in C # project:
Lua is a small scripting language. The author is Brazilian. The language is designed to be embedded into an application and provide flexible scalability and customization for the application. Its home page is www.
Introduction to LUA values and types in LUA 5.1 Reference Manual. Lua is a dynamic language, where variables have only values and no types in Lua. So variables in Lua do not need to be declared. So the value itself contains the type.In fact, Lua
Objective
Starting with the Lua5.1 version, new support is added to modules and packages, but modules and packages are defined and used using require and module. Require is used to use modules, and module is used to create modules. Simply put, a
Objective
The basics of LUA have finally come to an conclusion, and from this post we are truly entering the LUA world, a boring and interesting world. Come on.
The LUA language is an embedded language, its power is limited; When Lua meets C, it
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.