1 .\" $NetBSD: lua.1,v 1.3 2015/02/02 14:03:05 lneto Exp $
3 .TH LUA 1 "Date: 2014/12/10 15:55:45 "
19 is the standalone Lua interpreter.
20 It loads and executes Lua programs,
21 either in textual source form or
22 in precompiled binary form.
23 (Precompiled binaries are output by
27 can be used as a batch interpreter and also interactively.
31 are handled in order and then
32 the Lua program in file
34 is loaded and executed.
39 as strings in a global table named
41 If no options or arguments are given,
44 is assumed when the standard input is a terminal;
52 reads lines from the standard input,
53 and executes them as they are read.
54 If the line contains an expression or list of expressions,
55 then the line is evaluated and the results are printed.
56 If a line does not contain a complete statement,
57 then a secondary prompt is displayed and
58 lines are read until a complete statement is formed or
59 a syntax error is found.
62 before even handling the command line,
64 checks the contents of the environment variables
69 If the contents is of the form
74 Otherwise, the string is assumed to be a Lua statement and is executed.
82 enter interactive mode after executing
86 execute the equivalent of
87 .IB name =require(' name ')
92 show version information.
95 ignore environment variables.
98 stop handling options.
101 stop handling options and execute the standard input as a file.
105 The documentation at lua.org,
106 especially section 7 of the reference manual.
108 Error messages should be self explanatory.