Imported from ../lua-3.1.tar.gz.
[lua.git] / src / lua / README
blob313404298e5188b2eb319427f1164e2ad59a40da
1 This client is a sample lua interpreter.
2 It can be used as a batch interpreter and interactively.
3 Here are the options it understands:
5   -v       print version information
6   -d       turn debug on
7   -e stat  dostring `stat'
8   -q       interactive mode without prompt
9   -i       interactive mode with prompt
10   -        executes stdin as a file
11   a=b      sets global `a' with string `b' (no need to quote b)
12   name     dofile `name'
14 If no options are given, then it reads and executes lines from stdin.
15 In this case, each line must contain a complete statement.
16 To span a statement across several lines, end each line with a backslash '\'.
17 To change the prompt, set the global variable _PROMPT to whatever you want.
19 This interpreter is good for using Lua as a standalone language.
20 For a minimal interpreter, see etc/min.c.