Lua for Windows 开始学习Lua编程
2013-09-23 01:11
447 查看
luawindowsinstallerscriptingcompilerreference
Lua for Windows is a 'batteries included environment' for the Lua scripting language on Windows.这是在Windows上学习Lua的整套开发环境,包含Installer Lua Interpreter, Lua Reference Manual, Quick Lua Tour Sample, Examples directory, Libraries with documentation.
Lua Compiler (luac) Text Editors (SciTE and I think maybe wxLua editors too) C header files/libraries/etc. for building C module
项目地址:http://code.google.com/p/luaforwindows/
当前版本:5.1.4-45
![](http://my.csdn.net/uploads/201206/07/1339063619_1040.png)
下载之后,在安装目录"...\Lua\5.1\SciTE"下,打开SciTE.exe文件,新建一个文档,保存为"hello.lua",文档内容如下:
按下F5,在下面的输出窗口将会有如下内容:
运行结果图如下所示:
![](http://my.csdn.net/uploads/201206/07/1339063646_7137.png)
在"...\Lua\5.1\examples"目录下,有个"quickluatour.lua"是一些快速入门的示例。其中有个例子,是利用IupLua显示对话框的,新建一个"test.lua"文件,内容如下:
保存。在命令提示符下输入"lua test.lua",回车,效果如下所示:
Lua for Windows is a 'batteries included environment' for the Lua scripting language on Windows.这是在Windows上学习Lua的整套开发环境,包含Installer Lua Interpreter, Lua Reference Manual, Quick Lua Tour Sample, Examples directory, Libraries with documentation.
Lua Compiler (luac) Text Editors (SciTE and I think maybe wxLua editors too) C header files/libraries/etc. for building C module
项目地址:http://code.google.com/p/luaforwindows/
当前版本:5.1.4-45
![](http://my.csdn.net/uploads/201206/07/1339063619_1040.png)
下载之后,在安装目录"...\Lua\5.1\SciTE"下,打开SciTE.exe文件,新建一个文档,保存为"hello.lua",文档内容如下:
1 | print("hello,lua") |
1 2 3 | >lua -e "io.stdout:setvbuf 'no'" "hello.lua" hello,lua >Exit code: 0 |
![](http://my.csdn.net/uploads/201206/07/1339063646_7137.png)
在"...\Lua\5.1\examples"目录下,有个"quickluatour.lua"是一些快速入门的示例。其中有个例子,是利用IupLua显示对话框的,新建一个"test.lua"文件,内容如下:
1 2 3 4 5 6 7 8 9 10 11 | require( "iuplua" ) ml = iup.multiline { expand="YES", value="Quit this multiline edit app to continue Tutorial!", border="YES" } dlg = iup.dialog{ml; title="IupMultiline", size="QUARTERxQUARTER",} dlg:show() print("Exit GUI app to continue!") iup.MainLoop() |
![](http://my.csdn.net/uploads/201206/07/1339063665_6367.png)
相关文章推荐
- Lua for Windows 开始学习Lua编程
- 从零开始,学习windows编程(4)--从libc.lib开始
- 开始利用CSDN做学习笔记,从windows 游戏编程大师技巧和3D游戏编程大师开始
- 学习Windows 编程,从MSDN翻译开始--2
- Network Programming for Microsoft Windows 2nd(Windows 网络编程第二版) 学习心得
- 潜心开始学习网络编程的第一步 ,UNP(Unix Network Programming)第一章,时间服务器到windows的移植
- 学习Windows 编程,从MSDN翻译开始--1
- 从零开始,学习windows编程(4)--从libc.lib开始
- 第一篇文章--开始Windows编程的学习
- (C#)Windows Shell 编程系列2 - 解释,从“桌面”开始展开
- WINDOWS核心编程学习笔记--字符串处理
- [Windows编程] 开发DLL必读《Best Practices for Creating DLLs》
- 从零开始,学习windows编程(7)--不使用CRT库的程序
- 今天开始学习Windows下程序设计
- 重新开始核心编程,Windows的-开始
- 我的学习笔记_Windows_HOOK编程 2009-12-03 11:19
- 【WIndows核心编程学习笔记】线程栈
- windows 核心编程之 错误处理 -----学习笔记
- KINECT学习 "kinect for Windows SDK开发入门(二)"
- 今天开始使用unity 5.3 进行学习编程