1. Introduction
Lua is closely integrated with C/C ++. The interaction between Lua and C ++ is based on Lua and C.
As mentioned in the first lecture, there are two main methods to run the Lua program or call Lua:
* Run the "Lua" command through the
Lua script syntax description (add some features of lua5.1)Lua's syntax is relatively simple and easier to learn, but its functions are not weak.Therefore, I will simply sum up some of Lua's syntax rules for easy query. After reading it, you
Lua script syntax description (revision) Lua script syntax description (add some features of lua5.1)Lua's syntax is relatively simple and easier to learn, but its functions are not weak.Therefore, I will simply sum up some of Lua's syntax rules for
Date: 2014.8.7
Part IV the C API
27 Calling C from Lua
Here, Lua calls the C function, which does not mean that Lua can call any C function. Like calling the Lua function by C, the following rules must be followed: Passing parameters to obtain the
Recently in the study of how to embed Lua in Windows to complete the business module authoring some problems, first Lua as a scripting language, its flexibility and scalability is very high, otherwise cocos2d-x will not embed him to write business
[Binwood Lua column] basics 02: some special functions, lua Column
I did not expect that it has been more than a year since the previous basic supplement. I have recently prepared to return Lua and complete all the basics. Let's talk about the Lua
Document directory
HTML tags and JavaScript tutorial
HTML tags and JavaScript tutorial
Lua language tutorial [go]
Reprinted ---- I have read the reprinted articles and have not explained the source, so I will not write the source for the time
First, install LUA 5.3.4Downloadhttp://www.lua.org/ftp/lua-5.3. 4 . Tar.gztar xvf Lua-5.3. 4 . TAR.GZCD Lua-5.3. 4Important: Enter the unzipped path CD .../lua-5.3.4/src open the makefile file on the Cflag line to add options-fpic like this:The line
Lua script syntax description (add some features of lua5.1)
Lua's syntax is relatively simple and easier to learn, but its functions are not weak.Therefore, I will simply sum up some of Lua's syntax rules for easy query. After reading it, you will
Foreword: Why Use LUAFirst of all, all programming languages inside, my favorite is still c#,visualstudio+c#, can only say too comfortable. So why not use LUA in unity? may be mainly idle egg pain ..... There are other secondary reasons:Easy to do
Unity3d is a good engine, but one drawback is that iOS cannot be hot updated. If you can use Lua to write Unity3d game logic, then you can bypass the Apple audit random update.
One way to do this is to implement LUA on a C # basis. There are several
Reference article:1) http://www.oschina.net/question/12_769552) http://rudamoura.com/luaonmacosx.htmlRecently in the development of the game for iOS, my development machine is iPhone5. The LUA language is required in the development of the game
LUA annotations
--Single-line Comment: Use two minus signs to indicate this line is commentedPrint ("Hello Lua.")--[[Multiple-line comment. The rows in this range are looked at.]]Print ("Hello world.")LUA data types
Lua is a dynamic type language,
0. Introduction
Lua is becoming increasingly popular as a mature scripting language. It can also be used as a language for interacting with C/C ++ execution scripts. In addition, the entire Lua library is very small. I installed the latest
1, calling a function in C + + code in a LUA scriptWhen you define a function in C + +, you must use lua_state as the argument, and int as the return value to be called by Lua./*typedef int (*lua_cfunction) (lua_state*l);The type of the C
Lua is an embedded scripting language, that is, LUA is not a stand-alone program, and in practice, there are two main forms of application. The first is that C/s + + as the main program invokes the LUA code, which at this point can be viewed as
[Lua] Getting Started tutorial, lua getting started tutorialWhat is Lua?
Lua is a small scripting language. It is a research group at the Pontifical Catholic University of Rio de Janeiro in Rio de Janeiro, developed in 1993 by Robert Ierusalimschy,
Author: Mu Feng (Second Life Member)
For copyright reprinted, please indicate the original source
Home: Second Life http://www.d2-life.com
Http://www.d2-life.com/LBS/blogview.asp? LogID = 39
In this article, I would like to introduce you to Lua
Libraries and tools
Compared with Java, Python, and Perl, Lua may not have many open-source tools and libraries, but many of them are excellent. The following resources can be found in.
I. Kepler
Kepler is a simple and lightweight web development
This is the second of my Lua series tutorials, which focuses on data transfer between C + + and Lua. If you don't yet know how to call Lua scripts in C + +, refer to this article. This article mainly introduces the delivery of basic data types, such
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.