1 <!-- manual page source format generated by RosettaMan, -->
2 <!-- available via anonymous ftp from ftp.cs.berkeley.edu:/ucb/people/phelps/tcltk/rman.tar.Z -->
5 <TITLE>luac manual page
</TITLE>
8 <A HREF=
"#toc">Table of Contents
</A><P>
10 <A NAME=
"sect0" HREF=
"#toc0"><H2>NAME
</H2></A>
11 luac - Lua compiler
<P>
13 <A NAME=
"sect1" HREF=
"#toc1"><H2>SYNOPSIS
</H2></A>
14 luac [ -c | -u ] [ -d ] [ -l ] [ -p ] [ -q ] [ -v ] [ -o
<I>outputfile
</I> ]
<I>sourcefile
</I> ...
<P>
16 <A NAME=
"sect2" HREF=
"#toc2"><H2>DESCRIPTION
</H2></A>
17 luac is the Lua compiler. It translates programs written in the Lua programming language into binary files that can be loaded and executed with lua_dofile in C or dofile in Lua.
<P>
18 luac produces a single output file containing the bytecode for all named source files. By default, the output file is named luac.out, but you can change this with the -o option.
<P>
19 You can use
"-
" to indicate stdin as a source file.
<P>
20 luac can also load and list binary files.
<P>
22 <A NAME=
"sect3" HREF=
"#toc3"><H2>OPTIONS
</H2></A>
24 <dt>-c
<dd> compile (this is the default).
<P>
28 <dt>-u
<dd> undump.
<P>
32 <dt>-d
<dd> turns debugging on.
<P>
36 <dt>-l
<dd> produces a listing of the compiled bytecode for Lua's virtual machine. This is the default when undumping.
<P>
40 <dt>-p
<dd> parses sources files but does not generate any output file.
<P>
44 <dt>-q
<dd> quiet; procudes no listing. This is the default when compiling.
<P>
48 <dt>-v
<dd> prints version information.
<P>
52 <dt>-o
<I>outputfile
</I><dd> Name the output file
<I>output
</I>, instead of the default luac.out. The output file cannot be a source file.
<P>
56 <A NAME=
"sect4" HREF=
"#toc4"><H2>FILES
</H2></A>
58 <dt>luac.out
<dd> default output file
<P>
62 <A NAME=
"sect5" HREF=
"#toc5"><H2>SEE ALSO
</H2></A>
63 <A HREF=
"http://localhost/cgi-bin/man2html?lua?1">lua(
1)
</A><P>
64 <I>Reference
</I> <I>Manual
</I> <I>of
</I> <I>the
</I> <I>Programming
</I> <I>Language
</I> <I>Lua
</I><P>
66 <A NAME=
"sect6" HREF=
"#toc6"><H2>DIAGNOSTICS
</H2></A>
67 Error messages should be self explanatory.
<P>
69 <A NAME=
"sect7" HREF=
"#toc7"><H2>BUGS
</H2></A>
70 Inherits any bugs from Lua, but Lua has no bugs...
<P>
72 <A NAME=
"sect8" HREF=
"#toc8"><H2>AUTHORS
</H2></A>
73 W. Celes, R. Ierusalimschy
& L. H. de Figueiredo (lua@tecgraf.puc-rio.br)
<P>
76 <A NAME=
"toc"><B>Table of Contents
</B></A><P>
78 <LI><A NAME=
"toc0" HREF=
"#sect0">NAME
</A></LI>
79 <LI><A NAME=
"toc1" HREF=
"#sect1">SYNOPSIS
</A></LI>
80 <LI><A NAME=
"toc2" HREF=
"#sect2">DESCRIPTION
</A></LI>
81 <LI><A NAME=
"toc3" HREF=
"#sect3">OPTIONS
</A></LI>
82 <LI><A NAME=
"toc4" HREF=
"#sect4">FILES
</A></LI>
83 <LI><A NAME=
"toc5" HREF=
"#sect5">SEE ALSO
</A></LI>
84 <LI><A NAME=
"toc6" HREF=
"#sect6">DIAGNOSTICS
</A></LI>
85 <LI><A NAME=
"toc7" HREF=
"#sect7">BUGS
</A></LI>
86 <LI><A NAME=
"toc8" HREF=
"#sect8">AUTHORS
</A></LI>