Imported from ../lua-3.0.tar.gz.
[lua.git] / doc / luac.html
blob7d43ff1d538e39c0cba1d7a60cd8c890fe56807a
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 -->
3 <HTML>
4 <HEADER>
5 <TITLE>luac manual page</TITLE>
6 </HEADER>
7 <BODY>
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 &quot;-&quot; 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>
23 <dl>
24 <dt>-c <dd> compile (this is the default).<P>
25 </dd>
26 </dl>
27 <dl>
28 <dt>-u <dd> undump.<P>
29 </dd>
30 </dl>
31 <dl>
32 <dt>-d <dd> turns debugging on.<P>
33 </dd>
34 </dl>
35 <dl>
36 <dt>-l <dd> produces a listing of the compiled bytecode for Lua's virtual machine. This is the default when undumping.<P>
37 </dd>
38 </dl>
39 <dl>
40 <dt>-p <dd> parses sources files but does not generate any output file.<P>
41 </dd>
42 </dl>
43 <dl>
44 <dt>-q <dd> quiet; procudes no listing. This is the default when compiling.<P>
45 </dd>
46 </dl>
47 <dl>
48 <dt>-v <dd> prints version information.<P>
49 </dd>
50 </dl>
51 <dl>
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>
53 </dd>
54 </dl>
56 <A NAME="sect4" HREF="#toc4"><H2>FILES</H2></A>
57 <dl>
58 <dt>luac.out <dd> default output file<P>
59 </dd>
60 </dl>
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 &amp; L. H. de Figueiredo (lua@tecgraf.puc-rio.br)<P>
75 <HR><P>
76 <A NAME="toc"><B>Table of Contents</B></A><P>
77 <UL>
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>
87 </UL>
88 </BODY></HTML>