blob: e64e570f6d3d4f3ce4d829a87111d2ece416adc5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
|
.\" $Id: luac.man,v 1.3 1996/03/28 20:24:55 lhf Exp $
.TH LUAC 1 "12 March 1996"
.SH NAME
luac \- Lua compiler
.SH SYNOPSIS
.B luac
[
.B \-dlpv
]
[
.B \-o
.I outputfile
]
.I sourcefile
\&.\|.\|.
.SH DESCRIPTION
.B luac
is the Lua compiler.
It translates programs written in the Lua programming language
into binary files that can be loaded and executed with
.B lua_dofile
in C or
.B dofile
in Lua.
.BR luac
produces a single output file containing the bytecode
for all named source files.
By default,
the output file is named
.BR luac.out ,
but you can change this with the
.B \-o
option.
You can use "-" to indicate stdin as a source file.
.SH OPTIONS
.LP
.TP 1i
.B \-d
turns debugging on.
.TP
.B \-l
produces a listing of the compiled bytecode for Lua's virtual machine.
.TP
.B \-p
parses sources files but does not generate any output file.
.TP
.B \-v
prints version information.
.TP
.BI \-o " outputfile"
Name the output file
.IR output ,
instead of the default
.BR luac.out .
The output file cannot be a source file.
.SH FILES
.PD 0
.TP 20
.B luac.out
default output file
.PD
.SH "SEE ALSO"
.BR lua (1)
.LP
.IR "Reference Manual of the Programming Language Lua"
.SH DIAGNOSTICS
Error messages should be self explanatory.
.SH BUGS
Inherits any bugs from Lua,
but Lua has no bugs...
.SH AUTHORS
W. Celes, R. Ierusalimschy & L. H. de Figueiredo
(lua@icad.puc-rio.br)
|