1 .TH LUA 1 "$Date: 2014/12/10 15:55:45 $"
17 is the standalone Lua interpreter.
18 It loads and executes Lua programs,
19 either in textual source form or
20 in precompiled binary form.
21 (Precompiled binaries are output by
25 can be used as a batch interpreter and also interactively.
29 are handled in order and then
30 the Lua program in file
32 is loaded and executed.
37 as strings in a global table named
39 If no options or arguments are given,
42 is assumed when the standard input is a terminal;
50 reads lines from the standard input,
51 and executes them as they are read.
52 If the line contains an expression or list of expressions,
53 then the line is evaluated and the results are printed.
54 If a line does not contain a complete statement,
55 then a secondary prompt is displayed and
56 lines are read until a complete statement is formed or
57 a syntax error is found.
60 before even handling the command line,
62 checks the contents of the environment variables
67 If the contents is of the form
72 Otherwise, the string is assumed to be a Lua statement and is executed.
80 enter interactive mode after executing
84 execute the equivalent of
85 .IB name =require(' name ')
90 show version information.
93 ignore environment variables.
96 stop handling options.
99 stop handling options and execute the standard input as a file.
103 The documentation at lua.org,
104 especially section 7 of the reference manual.
106 Error messages should be self explanatory.