1 .\" $Id: lua.man,v 1.13 2011/11/16 17:16:53 lhf Exp $
\r
2 .TH LUA 1 "$Date: 2011/11/16 17:16:53 $"
\r
4 lua \- Lua interpreter
\r
18 is the standalone Lua interpreter.
\r
19 It loads and executes Lua programs,
\r
20 either in textual source form or
\r
21 in precompiled binary form.
\r
22 (Precompiled binaries are output by
\r
26 can be used as a batch interpreter and also interactively.
\r
30 are handled in order and then
\r
31 the Lua program in file
\r
33 is loaded and executed.
\r
38 as strings in a global table named
\r
40 If no options or arguments are given,
\r
43 is assumed when the standard input is a terminal;
\r
48 In interactive mode,
\r
51 reads lines from the standard input,
\r
52 and executes them as they are read.
\r
53 If a line does not contain a complete statement,
\r
54 then a secondary prompt is displayed and
\r
55 lines are read until a complete statement is formed or
\r
56 a syntax error is found.
\r
57 If a line starts with
\r
61 evaluates and displays
\r
62 the values of the expressions in the remainder of the line.
\r
65 before even handling the command line,
\r
67 checks the contents of the environment variables
\r
72 If the contents is of the form
\r
77 Otherwise, the string is assumed to be a Lua statement and is executed.
\r
85 enter interactive mode after executing
\r
89 execute the equivalent of
\r
90 .IB name =require(' name ')
\r
95 show version information.
\r
98 ignore environment variables.
\r
101 stop handling options.
\r
104 stop handling options and execute the standard input as a file.
\r
108 The documentation at lua.org,
\r
109 especially section 7 of the reference manual.
\r
111 Error messages should be self explanatory.
\r
114 L. H. de Figueiredo,
\r