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:
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: