diff options
Diffstat (limited to '')
| -rw-r--r-- | manual.tex | 75 |
1 files changed, 39 insertions, 36 deletions
| @@ -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 |
| 108 | Copyright \copyright\ 1994--1998 TeCGraf, PUC-Rio. | 109 | Copyright \copyright\ 1994--1998 TeCGraf, PUC-Rio. All rights reserved. |
| 109 | Written by Waldemar Celes Filho, | 110 | |
| 110 | Roberto Ierusalimschy, | 111 | Permission is hereby granted, without written agreement and without license |
| 111 | and Luiz Henrique de Figueiredo. | 112 | or royalty fees, to use, copy, modify, and distribute this software and its |
| 112 | All rights reserved. | 113 | documentation for any purpose, including commercial applications, subject to |
| 113 | % | 114 | the following conditions: |
| 114 | Permission is hereby granted, without written agreement and without license or | 115 | \begin{itemize} |
| 115 | royalty 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 |
| 116 | documentation for any purpose, subject to the following conditions: | 117 | copies or substantial portions of this software. |
| 117 | % | 118 | |
| 118 | The 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 |
| 119 | copies 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 |
| 121 | The name ``Lua'' cannot be used for any modified form | 122 | appreciated (but it is not required). |
| 122 | of this software that does not originate from the authors. | 123 | |
| 123 | Nevertheless, the name ``Lua'' may and should be | 124 | \item Altered source versions must be plainly marked as such, and must not be |
| 124 | used to designate the language implemented and described in this package, | 125 | misrepresented as being the original software. |
| 125 | even if embedded in any other system, as long as its syntax and semantics | 126 | \end{itemize} |
| 126 | remain unchanged. | 127 | The authors specifically disclaim any warranties, including, but not limited |
| 127 | % | 128 | to, the implied warranties of merchantability and fitness for a particular |
| 128 | The authors specifically disclaim any warranties, including, | 129 | purpose. The software provided hereunder is on an "as is" basis, and the |
| 129 | but not limited to, the implied warranties of merchantability | ||
| 130 | and fitness for a particular purpose. | ||
| 131 | The software provided hereunder is on an ``as is'' basis, and the | ||
| 132 | authors have no obligation to provide maintenance, support, updates, | 130 | authors have no obligation to provide maintenance, support, updates, |
| 133 | enhancements, or modifications. | 131 | enhancements, or modifications. In no event shall TeCGraf, PUC-Rio, or the |
| 134 | In no event shall TeCGraf, PUC-Rio, or the | 132 | authors be held liable to any party for direct, indirect, special, |
| 135 | authors be liable to any party for direct, indirect, special, incidental, or | 133 | incidental, or consequential damages arising out of the use of this software |
| 136 | consequential damages arising out of the use of this software and its | 134 | and its documentation. |
| 137 | documentation. | 135 | |
| 136 | The Lua language and this implementation have been entirely designed and | ||
| 137 | written by Waldemar Celes Filho, Roberto Ierusalimschy and | ||
| 138 | Luiz Henrique de Figueiredo at TeCGraf, PUC-Rio. | ||
| 139 | This 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, | |||
| 349 | through the escape sequence \verb|'\ddd'|, | 350 | through the escape sequence \verb|'\ddd'|, |
| 350 | where \verb|ddd| is a sequence of up to three \emph{decimal} digits. | 351 | where \verb|ddd| is a sequence of up to three \emph{decimal} digits. |
| 351 | Strings in Lua may contain any 8-bit value, including 0. | 352 | Strings in Lua may contain any 8-bit value, including 0. |
| 353 | |||
| 352 | Literal strings can also be delimited by matching \verb|[[ ... ]]|. | 354 | Literal strings can also be delimited by matching \verb|[[ ... ]]|. |
| 353 | Literals in this bracketed form may run for several lines, | 355 | Literals in this bracketed form may run for several lines, |
| 354 | may contain nested \verb|[[ ... ]]| pairs, | 356 | may contain nested \verb|[[ ... ]]| pairs, |
| @@ -2286,7 +2288,7 @@ the appropriate format string. | |||
| 2286 | For example, \verb|"%*g"| can be simulated with | 2288 | For 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 |
| 2290 | contain zeros.} | 2292 | contain 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, |
| 2888 | Lua 3.1 must be explicitly opened before used. | 2890 | Lua 3.1 must be explicitly opened before used, |
| 2891 | with function \verb|lua_open|. | ||
| 2889 | However, all standard libraries check whether Lua is already opened, | 2892 | However, all standard libraries check whether Lua is already opened, |
| 2890 | so any program that opens at least one standard library before calling | 2893 | so any program that opens at least one standard library before calling |
| 2891 | Lua does not need to be modified. | 2894 | Lua does not need to be modified. |
