User Tools

Site Tools


programming:lua

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
programming:lua [2021/04/14 02:43]
nanodano
programming:lua [2021/04/14 02:44] (current)
nanodano [Executing code]
Line 31: Line 31:
   * In the interactive REPL: ''lua''   * In the interactive REPL: ''lua''
   * By invoking the Lua interpreter and passing it a file: ''lua hello.lua''   * By invoking the Lua interpreter and passing it a file: ''lua hello.lua''
-  * By executing a script directly with a shebang (''#!/usr/bin/lua'')''./hello'' +  * By executing a script directly with a shebang (e.g. ''#!/usr/bin/lua''and run with ''./hello'' 
-  * Running a precompiled script (''luac hello.lua''): ''lua luac.out''+  * Running a precompiled script. Compile with ''luac hello.lua'' and run with ''lua luac.out''
  
 ===== Hello World ===== ===== Hello World =====
programming/lua.1618368196.txt.gz · Last modified: 2021/04/14 02:43 by nanodano