Ubuntu装配lua并基本使用

Ubuntu安装lua并基本使用最近因为要深入应用premake,所以得学点lua.Ubuntu13.04下安装命令:#!/usr/bin/lua

Ubuntu安装lua并基本使用

最近因为要深入应用premake,所以得学点lua.

Ubuntu13.04下安装命令:

#!/usr/bin/lua-- hello world lua programstr = "Hello World!"print (str)if str == "Hello World!" thenprint "ok"end