HTML tutorial
CSS3 tutorial
Bootstrap tutorial
JavaScript tutorial
JQuery tutorial
AngularJS tutorial
React tutorial
NodeJS tutorial
PHP tutorial
Python tutorial
Python3 tutorial
Django tutorial
Linux tutorial
Docker tutorial
Ruby tutorial
Java tutorial
C tutorial
C ++ tutorial
Perl tutorial
JSP tutorial
Lua tutorial
Scala tutorial
Go tutorial
ASP.NET tutorial
C # tutorial
Linux & Install Lua installed on Mac is very simple, just download the source package to compile and decompression in the terminal, it uses the 5.3.0 version is installed:
curl -R -O https://www.lua.org/ftp/lua-5.3.0.tar.gz tar zxf lua-5.3.0.tar.gz cd lua-5.3.0 make linux test make install
curl -R -O https://www.lua.org/ftp/lua-5.3.0.tar.gz tar zxf lua-5.3.0.tar.gz cd lua-5.3.0 make macosx test make installNext we create a HelloWorld.lua file, as follows:
print("Hello World!")
Execute the following command:
$ lua HelloWorld.lua
The output is:
Hello World!
You can use a lower window called "SciTE" lua IDE environment to execute the program, download address is:
Lua can write a program in this environment after double-click to install and run.
You can also use Lua official recommended method LuaDist: https://luadist.org/