aboutsummaryrefslogtreecommitdiff
path: root/manual.tex
diff options
context:
space:
mode:
Diffstat (limited to 'manual.tex')
-rw-r--r--manual.tex75
1 files changed, 39 insertions, 36 deletions
diff --git a/manual.tex b/manual.tex
index 27f3df12..6725b893 100644
--- a/manual.tex
+++ b/manual.tex
@@ -1,6 +1,7 @@
1% $Id: manual.tex,v 1.11 1998/05/27 19:09:39 roberto Exp roberto $ 1% $Id: manual.tex,v 1.12 1998/06/02 20:37:04 roberto Exp roberto $
2 2
3\documentstyle[fullpage,11pt,bnf]{article} 3\documentclass[11pt]{article}
4\usepackage{fullpage,bnf}
4 5
5\newcommand{\See}[1]{Section~\ref{#1}} 6\newcommand{\See}[1]{Section~\ref{#1}}
6\newcommand{\see}[1]{(see \See{#1})} 7\newcommand{\see}[1]{(see \See{#1})}
@@ -38,7 +39,7 @@ Waldemar Celes
38\tecgraf\ --- Computer Science Department --- PUC-Rio 39\tecgraf\ --- Computer Science Department --- PUC-Rio
39} 40}
40 41
41\date{\small \verb$Date: 1998/05/27 19:09:39 $} 42%\date{\small \verb$Date: 1998/06/02 20:37:04 $}
42 43
43\maketitle 44\maketitle
44 45
@@ -101,42 +102,42 @@ a intera\c{c}\~ao entre programas Lua e programas C hospedeiros.
101\end{quotation} 102\end{quotation}
102 103
103 104
104\vfill 105\newpage
105\begin{quotation} 106\begin{quotation}
106\noindent 107\noindent
107\footnotesize 108\footnotesize
108Copyright \copyright\ 1994--1998 TeCGraf, PUC-Rio. 109Copyright \copyright\ 1994--1998 TeCGraf, PUC-Rio. All rights reserved.
109Written by Waldemar Celes Filho, 110
110Roberto Ierusalimschy, 111Permission is hereby granted, without written agreement and without license
111and Luiz Henrique de Figueiredo. 112or royalty fees, to use, copy, modify, and distribute this software and its
112All rights reserved. 113documentation for any purpose, including commercial applications, subject to
113% 114the following conditions:
114Permission is hereby granted, without written agreement and without license or 115\begin{itemize}
115royalty fees, to use, copy, modify, and distribute this software and its 116\item The above copyright notice and this permission notice shall appear in all
116documentation for any purpose, subject to the following conditions: 117 copies or substantial portions of this software.
117% 118
118The above copyright notice and this permission notice shall appear in all 119\item The origin of this software must not be misrepresented; you must not
119copies or substantial portions of this software. 120 claim that you wrote the original software. If you use this software in a
120% 121 product, an acknowledgment in the product documentation would be greatly
121The name ``Lua'' cannot be used for any modified form 122 appreciated (but it is not required).
122of this software that does not originate from the authors. 123
123Nevertheless, the name ``Lua'' may and should be 124\item Altered source versions must be plainly marked as such, and must not be
124used to designate the language implemented and described in this package, 125 misrepresented as being the original software.
125even if embedded in any other system, as long as its syntax and semantics 126\end{itemize}
126remain unchanged. 127The authors specifically disclaim any warranties, including, but not limited
127% 128to, the implied warranties of merchantability and fitness for a particular
128The authors specifically disclaim any warranties, including, 129purpose. The software provided hereunder is on an "as is" basis, and the
129but not limited to, the implied warranties of merchantability
130and fitness for a particular purpose.
131The software provided hereunder is on an ``as is'' basis, and the
132authors have no obligation to provide maintenance, support, updates, 130authors have no obligation to provide maintenance, support, updates,
133enhancements, or modifications. 131enhancements, or modifications. In no event shall TeCGraf, PUC-Rio, or the
134In no event shall TeCGraf, PUC-Rio, or the 132authors be held liable to any party for direct, indirect, special,
135authors be liable to any party for direct, indirect, special, incidental, or 133incidental, or consequential damages arising out of the use of this software
136consequential damages arising out of the use of this software and its 134and its documentation.
137documentation. 135
136The Lua language and this implementation have been entirely designed and
137written by Waldemar Celes Filho, Roberto Ierusalimschy and
138Luiz Henrique de Figueiredo at TeCGraf, PUC-Rio.
139This implementation contains no third-party code.
138\end{quotation} 140\end{quotation}
139\vfill
140 141
141\newpage 142\newpage
142 143
@@ -349,6 +350,7 @@ A character in a string may also be specified by its numerical value,
349through the escape sequence \verb|'\ddd'|, 350through the escape sequence \verb|'\ddd'|,
350where \verb|ddd| is a sequence of up to three \emph{decimal} digits. 351where \verb|ddd| is a sequence of up to three \emph{decimal} digits.
351Strings in Lua may contain any 8-bit value, including 0. 352Strings in Lua may contain any 8-bit value, including 0.
353
352Literal strings can also be delimited by matching \verb|[[ ... ]]|. 354Literal strings can also be delimited by matching \verb|[[ ... ]]|.
353Literals in this bracketed form may run for several lines, 355Literals in this bracketed form may run for several lines,
354may contain nested \verb|[[ ... ]]| pairs, 356may contain nested \verb|[[ ... ]]| pairs,
@@ -2286,7 +2288,7 @@ the appropriate format string.
2286For example, \verb|"%*g"| can be simulated with 2288For example, \verb|"%*g"| can be simulated with
2287\verb|"%"..width.."g"|. 2289\verb|"%"..width.."g"|.
2288 2290
2289\emph{Function \verb|format| can only be used with strings that do not 2291\emph{Function \T{format} can only be used with strings that do not
2290contain zeros.} 2292contain zeros.}
2291 2293
2292\subsubsection*{\ff \T{gsub (s, pat, repl [, n])}} 2294\subsubsection*{\ff \T{gsub (s, pat, repl [, n])}}
@@ -2885,7 +2887,8 @@ Here is a list of all these incompatibilities.
2885\begin{itemize} 2887\begin{itemize}
2886 2888
2887\item To support multiple contexts, 2889\item To support multiple contexts,
2888Lua 3.1 must be explicitly opened before used. 2890Lua 3.1 must be explicitly opened before used,
2891with function \verb|lua_open|.
2889However, all standard libraries check whether Lua is already opened, 2892However, all standard libraries check whether Lua is already opened,
2890so any program that opens at least one standard library before calling 2893so any program that opens at least one standard library before calling
2891Lua does not need to be modified. 2894Lua does not need to be modified.