diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 1996-11-14 15:45:37 -0200 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 1996-11-14 15:45:37 -0200 |
commit | a5614eae3c4cddb055f06a6918172bb6bce7c702 (patch) | |
tree | bd3a1984d02e184ff5405d173ed304a8eeb5dee4 /manual.tex | |
parent | 536bae58710ef9dfcee63515b25d5ad46a1d2bee (diff) | |
download | lua-a5614eae3c4cddb055f06a6918172bb6bce7c702.tar.gz lua-a5614eae3c4cddb055f06a6918172bb6bce7c702.tar.bz2 lua-a5614eae3c4cddb055f06a6918172bb6bce7c702.zip |
spelling corrections.
Diffstat (limited to 'manual.tex')
-rw-r--r-- | manual.tex | 22 |
1 files changed, 11 insertions, 11 deletions
@@ -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 |
232 | double hyphen (\verb'--') and run until the end of the line. | 232 | double hyphen (\verb'--') and run until the end of the line. |
233 | Moreover, if the first line of a chunk file starts with \verb'#', | 233 | Moreover, if the first line of a chunk file starts with \verb'#', |
234 | this line is skiped% | 234 | this 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 |
236 | in Unix systems.}. | 236 | in Unix systems.}. |
237 | 237 | ||
@@ -678,7 +678,7 @@ called when Lua tries to assign indexed a non table value. | |||
678 | It receives as arguments the non table value, | 678 | It receives as arguments the non table value, |
679 | the index, and the assigned value. | 679 | the index, and the assigned value. |
680 | The default handler issues an error. | 680 | The default handler issues an error. |
681 | \item[``function'':]\index{function falback} | 681 | \item[``function'':]\index{function fallback} |
682 | called when Lua tries to call a non function value. | 682 | called when Lua tries to call a non function value. |
683 | It receives as arguments the non function value and the | 683 | It receives as arguments the non function value and the |
684 | arguments given in the original call. | 684 | arguments 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} |
1336 | Returns a copy of \verb-s-, | 1336 | Returns a copy of \verb-s-, |
1337 | where all ocurrences of the pattern \verb-pat- have been | 1337 | where all occurrences of the pattern \verb-pat- have been |
1338 | replaced by a replacement string specified by \verb-repl-. | 1338 | replaced by a replacement string specified by \verb-repl-. |
1339 | This function also returns, as a second value, | 1339 | This function also returns, as a second value, |
1340 | the total number of substitutions made. | 1340 | the total number of substitutions made. |
@@ -1352,10 +1352,10 @@ otherwise, the replacement string is the empty string. | |||
1352 | 1352 | ||
1353 | An optional parameter \verb-n- limits | 1353 | An optional parameter \verb-n- limits |
1354 | the maximum number of substitutions to occur. | 1354 | the maximum number of substitutions to occur. |
1355 | For instance, when \verb-n- is 1 only the first ocurrence of | 1355 | For instance, when \verb-n- is 1 only the first occurrence of |
1356 | \verb-pat- is replaced. | 1356 | \verb-pat- is replaced. |
1357 | 1357 | ||
1358 | As an example, in the following expression each ocurrence of the form | 1358 | As 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|, |
1360 | passing \verb|name| as argument | 1360 | passing \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'?'. | |||
1415 | A single character class matches any single character in the class. | 1415 | A single character class matches any single character in the class. |
1416 | A character class followed by \verb'*' matches 0 or more repetitions | 1416 | A character class followed by \verb'*' matches 0 or more repetitions |
1417 | of characters in the class. | 1417 | of characters in the class. |
1418 | A character class followed by \verb'?' matches 0 or one ocurrence | 1418 | A character class followed by \verb'?' matches 0 or one occurrence |
1419 | of a character in the class. | 1419 | of a character in the class. |
1420 | A pattern item may also has the form \verb'%n', | 1420 | A pattern item may also has the form \verb'%n', |
1421 | for \verb-n- between 1 and 9; | 1421 | for \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 |
2206 | until an \verb|EOF|. | 2206 | until 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} |
2211 | All arguments are handle in order. | 2211 | All arguments are handle in order. |
2212 | For instance, an invocation like | 2212 | For instance, an invocation like |