Lua for Windows

Source: Internet
Author: User
Lua for Windows is a 'batteries encoded environment 'For the Lua scripting language on Windows. this is the complete development environment for learning Lua on Windows, including 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 Project address: http://code.google.com/p/luaforwindows/
Current version: 5.1.4-45 After download, In the installation directory "... \ Lua \ 5.1 \ scite ", open the scite.exe file, create a new document, and save it as" hello. lua ", the content of the document is as follows:
1
Print ("Hello, Lua ")
Press F5 and the following output window will show the following content:

1
2
3
> LUA-e "Io. stdout: setvbuf 'No'" "Hello. Lua"
Hello, Lua
> Exit code: 0
The running result is shown as follows:

Under the "... \ Lua \ 5.1 \ Examples" directory, "quickluatour. Lua" is an example of quick start. In this example, the iuplua dialog box is used to create a new "test. Lua" file with the following content:

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 ()
Save. Enter "Lua test. Lua" in the command prompt and press Enter. The effect is as follows:

Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.