aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>1994-11-03 15:09:20 -0200
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>1994-11-03 15:09:20 -0200
commit6b18cc9a170c1e3fbfcfe98cb771375ce164d6bf (patch)
tree26576e5c18d9028ee09108c76eb7ad148c44ce1a
parentfbf887ec2be8b293d6f3ffc88b42c5a9e87bf022 (diff)
downloadlua-6b18cc9a170c1e3fbfcfe98cb771375ce164d6bf.tar.gz
lua-6b18cc9a170c1e3fbfcfe98cb771375ce164d6bf.tar.bz2
lua-6b18cc9a170c1e3fbfcfe98cb771375ce164d6bf.zip
prototype for function 'yylex'
-rw-r--r--lex.c41
1 files changed, 3 insertions, 38 deletions
diff --git a/lex.c b/lex.c
index 083980fc..55bb08f6 100644
--- a/lex.c
+++ b/lex.c
@@ -1,40 +1,5 @@
1char *rcs_lex = "$Id: lex.c,v 2.7 1994/10/17 19:01:53 celes Exp celes $"; 1char *rcs_lex = "$Id: lex.c,v 2.8 1994/10/18 17:34:34 celes Exp roberto $";
2/*$Log: lex.c,v $ 2
3 * Revision 2.7 1994/10/17 19:01:53 celes
4 * new algorithm for reading floats.
5 * files end with EOF, instead of 0.
6 *
7 * Revision 2.6 1994/09/26 16:21:52 celes
8 * Mudancas para tornar lex.c um modulo independente dos outros
9 * modulos de Lua
10 *
11 * Revision 2.5 1994/09/22 12:44:00 lhf
12 * added support for ugly tokens
13 *
14 * Revision 2.4 1994/09/05 19:14:40 celes
15 * escapes \' e \" em strings; correcao do escape \\
16 *
17 * Revision 2.3 1994/08/17 17:41:50 celes
18 * Implementacao da macro 'lua_strcmp'
19 *
20 * Revision 2.2 1994/08/05 19:27:41 celes
21 * implementacao de dois buffer de 'yytext' para evitar bug
22 * no look ahead do yacc
23 *
24 * Revision 2.1 1994/04/15 19:00:28 celes
25 * Retirar chamada da funcao lua_findsymbol associada a cada
26 * token NAME. A decisao de chamar lua_findsymbol ou lua_findconstant
27 * fica a cargo do modulo "lua.stx".
28 *
29 * Revision 1.3 1993/12/28 16:42:29 roberto
30 * "include"s de string.h e stdlib.h para evitar warnings
31 *
32 * Revision 1.2 1993/12/22 21:39:15 celes
33 * Tratamento do token $debug e $nodebug
34 *
35 * Revision 1.1 1993/12/22 21:15:16 roberto
36 * Initial revision
37 **/
38 3
39#include <ctype.h> 4#include <ctype.h>
40#include <math.h> 5#include <math.h>
@@ -119,7 +84,7 @@ static int findReserved (char *name)
119} 84}
120 85
121 86
122int yylex () 87int yylex (void)
123{ 88{
124 float a; 89 float a;
125 currentText = !currentText; 90 currentText = !currentText;