summaryrefslogtreecommitdiff
path: root/manual.tex
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>1996-11-14 15:45:37 -0200
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>1996-11-14 15:45:37 -0200
commita5614eae3c4cddb055f06a6918172bb6bce7c702 (patch)
treebd3a1984d02e184ff5405d173ed304a8eeb5dee4 /manual.tex
parent536bae58710ef9dfcee63515b25d5ad46a1d2bee (diff)
downloadlua-a5614eae3c4cddb055f06a6918172bb6bce7c702.tar.gz
lua-a5614eae3c4cddb055f06a6918172bb6bce7c702.tar.bz2
lua-a5614eae3c4cddb055f06a6918172bb6bce7c702.zip
spelling corrections.
Diffstat (limited to 'manual.tex')
-rw-r--r--manual.tex22
1 files changed, 11 insertions, 11 deletions
diff --git a/manual.tex b/manual.tex
index e153f166..f3076b96 100644
--- a/manual.tex
+++ b/manual.tex
@@ -1,4 +1,4 @@
1% $Id: manual.tex,v 1.22 1996/11/06 20:26:56 roberto Exp roberto $ 1% $Id: manual.tex,v 1.23 1996/11/12 16:00:16 roberto Exp $
2 2
3\documentstyle[fullpage,11pt,bnf]{article} 3\documentstyle[fullpage,11pt,bnf]{article}
4 4
@@ -35,7 +35,7 @@ Waldemar Celes
35\tecgraf\ --- Departamento de Inform\'atica --- PUC-Rio 35\tecgraf\ --- Departamento de Inform\'atica --- PUC-Rio
36} 36}
37 37
38\date{\small \verb$Date: 1996/11/06 20:26:56 $} 38\date{\small \verb$Date: 1996/11/12 16:00:16 $}
39 39
40\maketitle 40\maketitle
41 41
@@ -231,7 +231,7 @@ and do not interpret escape sequences.
231\Index{Comments} start anywhere outside a string with a 231\Index{Comments} start anywhere outside a string with a
232double hyphen (\verb'--') and run until the end of the line. 232double hyphen (\verb'--') and run until the end of the line.
233Moreover, if the first line of a chunk file starts with \verb'#', 233Moreover, if the first line of a chunk file starts with \verb'#',
234this line is skiped% 234this line is skipped%
235\footnote{This facility allows the use of Lua as a script interpreter 235\footnote{This facility allows the use of Lua as a script interpreter
236in Unix systems.}. 236in Unix systems.}.
237 237
@@ -678,7 +678,7 @@ called when Lua tries to assign indexed a non table value.
678It receives as arguments the non table value, 678It receives as arguments the non table value,
679the index, and the assigned value. 679the index, and the assigned value.
680The default handler issues an error. 680The default handler issues an error.
681\item[``function'':]\index{function falback} 681\item[``function'':]\index{function fallback}
682called when Lua tries to call a non function value. 682called when Lua tries to call a non function value.
683It receives as arguments the non function value and the 683It receives as arguments the non function value and the
684arguments given in the original call. 684arguments given in the original call.
@@ -1334,7 +1334,7 @@ whereas \verb'q' and \verb's' expect a string.
1334 1334
1335\subsubsection*{\ff{\tt gsub (s, pat, repl [, n])}}\Deffunc{gsub} 1335\subsubsection*{\ff{\tt gsub (s, pat, repl [, n])}}\Deffunc{gsub}
1336Returns a copy of \verb-s-, 1336Returns a copy of \verb-s-,
1337where all ocurrences of the pattern \verb-pat- have been 1337where all occurrences of the pattern \verb-pat- have been
1338replaced by a replacement string specified by \verb-repl-. 1338replaced by a replacement string specified by \verb-repl-.
1339This function also returns, as a second value, 1339This function also returns, as a second value,
1340the total number of substitutions made. 1340the total number of substitutions made.
@@ -1352,10 +1352,10 @@ otherwise, the replacement string is the empty string.
1352 1352
1353An optional parameter \verb-n- limits 1353An optional parameter \verb-n- limits
1354the maximum number of substitutions to occur. 1354the maximum number of substitutions to occur.
1355For instance, when \verb-n- is 1 only the first ocurrence of 1355For instance, when \verb-n- is 1 only the first occurrence of
1356\verb-pat- is replaced. 1356\verb-pat- is replaced.
1357 1357
1358As an example, in the following expression each ocurrence of the form 1358As an example, in the following expression each occurrence of the form
1359\verb-$name$- calls the function \verb|getenv|, 1359\verb-$name$- calls the function \verb|getenv|,
1360passing \verb|name| as argument 1360passing \verb|name| as argument
1361(because only this part of the pattern is captured). 1361(because only this part of the pattern is captured).
@@ -1415,7 +1415,7 @@ or a character class followed by \verb'*' or by \verb'?'.
1415A single character class matches any single character in the class. 1415A single character class matches any single character in the class.
1416A character class followed by \verb'*' matches 0 or more repetitions 1416A character class followed by \verb'*' matches 0 or more repetitions
1417of characters in the class. 1417of characters in the class.
1418A character class followed by \verb'?' matches 0 or one ocurrence 1418A character class followed by \verb'?' matches 0 or one occurrence
1419of a character in the class. 1419of a character in the class.
1420A pattern item may also has the form \verb'%n', 1420A pattern item may also has the form \verb'%n',
1421for \verb-n- between 1 and 9; 1421for \verb-n- between 1 and 9;
@@ -2204,9 +2204,9 @@ This program can be called with any sequence of the following arguments:
2204\item[{\tt -v}] prints version information. 2204\item[{\tt -v}] prints version information.
2205\item[{\tt -}] runs interactively, accepting commands from standard input 2205\item[{\tt -}] runs interactively, accepting commands from standard input
2206until an \verb|EOF|. 2206until an \verb|EOF|.
2207\item[{\tt -e stat}] executes \verb|stat| as a Lua chunck. 2207\item[{\tt -e stat}] executes \verb|stat| as a Lua chunk.
2208\item[{\tt var=exp}] executes \verb|var=exp| as a Lua chunck. 2208\item[{\tt var=exp}] executes \verb|var=exp| as a Lua chunk.
2209\item[{\tt filename}] executes file \verb|filename| as a Lua chunck. 2209\item[{\tt filename}] executes file \verb|filename| as a Lua chunk.
2210\end{description} 2210\end{description}
2211All arguments are handle in order. 2211All arguments are handle in order.
2212For instance, an invocation like 2212For instance, an invocation like