1
.\" $Id: lua.man,v 1.13 2011/11/16 17:16:53 lhf Exp $
2
.TH LUA 1 "$Date: 2011/11/16 17:16:53 $"
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 a line does not contain a complete statement,
54
then a secondary prompt is displayed and
55
lines are read until a complete statement is formed or
56
a syntax error is found.
61
evaluates and displays
62
the values of the expressions in the remainder of the line.
65
before even handling the command line,
67
checks the contents of the environment variables
72
If the contents is of the form
77
Otherwise, the string is assumed to be a Lua statement and is executed.
85
enter interactive mode after executing
89
execute the equivalent of
90
.IB name =require(' name ')
95
show version information.
98
ignore environment variables.
101
stop handling options.
104
stop handling options and execute the standard input as a file.
108
The documentation at lua.org,
109
especially section 7 of the reference manual.
111
Error messages should be self explanatory.