1 .\" $Id: lua.man,v 1.14 2016/10/17 15:43:50 lhf Exp $
2 .TH LUA 1 "$Date: 2016/10/17 15:43:50 $"
18 is the standalone Lua interpreter.
19 It loads and executes Lua programs,
20 either in textual source form or
21 in precompiled binary form.
22 (Precompiled binaries are output by
26 can be used as a batch interpreter and also interactively.
30 are handled in order and then
31 the Lua program in file
33 is loaded and executed.
38 as strings in a global table named
40 If no options or arguments are given,
43 is assumed when the standard input is a terminal;
51 reads lines from the standard input,
52 and executes them as they are read.
53 If the line contains an expression or list of expressions,
54 then the line is evaluated and the results are printed.
55 If a line does not contain a complete statement,
56 then a secondary prompt is displayed and
57 lines are read until a complete statement is formed or
58 a syntax error is found.
61 before even handling the command line,
63 checks the contents of the environment variables
68 If the contents is of the form
73 Otherwise, the string is assumed to be a Lua statement and is executed.
81 enter interactive mode after executing
85 execute the equivalent of
86 .IB name =require(' name ')
91 show version information.
94 ignore environment variables.
97 stop handling options.
100 stop handling options and execute the standard input as a file.
104 The documentation at lua.org,
105 especially section 7 of the reference manual.
107 Error messages should be self explanatory.