diff options
| author | Lua Team <team@lua.org> | 2003-04-11 12:00:00 +0000 |
|---|---|---|
| committer | repogen <> | 2003-04-11 12:00:00 +0000 |
| commit | f0e4e22f5c119865eb5a8d3844a40df2d5980b3b (patch) | |
| tree | c4df063a747e9c99f8aba1678588a030993780a9 /src/luac/README | |
| parent | 1981b7c90eb09e956e969cda5c473be4560af573 (diff) | |
| download | lua-github-5.0.tar.gz | |
Lua 5.05.0
Diffstat (limited to 'src/luac/README')
| -rw-r--r-- | src/luac/README | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/src/luac/README b/src/luac/README index 8d8bb491..ada7bc4b 100644 --- a/src/luac/README +++ b/src/luac/README @@ -1,22 +1,18 @@ This is luac, the Lua compiler. There are man pages for it in both nroff and html in ../../doc. -luac translates Lua programs into binary files that can be loaded and executed -with lua_dofile in C or with dofile in Lua. +luac translates Lua programs into binary files that can be loaded latter. The main advantages of pre-compiling chunks are: faster loading, protecting source code from user changes, and off-line syntax error detection. luac can also be used to learn about the Lua virtual machine. -Here are the options that luac understands: - +Usage: /l/luac/luac [options] [filenames]. Available options are: - process stdin -l list - -o file output file (default is "luac.out") + -o name output to file `name' (default is "luac.out") -p parse only -s strip debug information - -t test code integrity -v show version information + -- stop handling options luac is also an example of how to use the internals of Lua (politely). -Finally, luac does not need the runtime code, and stubs.c makes sure it is not -linked into luac. This file also shows how to avoid linking the parser. |
