diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2000-03-10 15:37:44 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2000-03-10 15:37:44 -0300 |
commit | 73aa465a8ed8dee6c6a27a6f8b2f51227b70789d (patch) | |
tree | 496a63ffffe0312f1d0b9882d97944fa38ed7801 /llex.h | |
parent | 3d0577f4b98908be3f2d697ab75c5fbbd3f6999b (diff) | |
download | lua-73aa465a8ed8dee6c6a27a6f8b2f51227b70789d.tar.gz lua-73aa465a8ed8dee6c6a27a6f8b2f51227b70789d.tar.bz2 lua-73aa465a8ed8dee6c6a27a6f8b2f51227b70789d.zip |
some name changes
Diffstat (limited to 'llex.h')
-rw-r--r-- | llex.h | 17 |
1 files changed, 9 insertions, 8 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: llex.h,v 1.18 2000/02/08 16:34:31 roberto Exp roberto $ | 2 | ** $Id: llex.h,v 1.19 2000/03/03 14:58:26 roberto Exp roberto $ |
3 | ** Lexical Analyzer | 3 | ** Lexical Analyzer |
4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
5 | */ | 5 | */ |
@@ -23,15 +23,16 @@ | |||
23 | */ | 23 | */ |
24 | enum RESERVED { | 24 | enum RESERVED { |
25 | /* terminal symbols denoted by reserved words */ | 25 | /* terminal symbols denoted by reserved words */ |
26 | AND = FIRST_RESERVED, | 26 | TK_AND = FIRST_RESERVED, |
27 | DO, ELSE, ELSEIF, END, FUNCTION, IF, LOCAL, NIL, NOT, OR, | 27 | TK_DO, TK_ELSE, TK_ELSEIF, TK_END, TK_FUNCTION, TK_IF, TK_LOCAL, |
28 | REPEAT, RETURN, THEN, UNTIL, WHILE, | 28 | TK_NIL, TK_NOT, TK_OR, TK_REPEAT, TK_RETURN, TK_THEN, TK_UNTIL, TK_WHILE, |
29 | /* other terminal symbols */ | 29 | /* other terminal symbols */ |
30 | NAME, CONC, DOTS, EQ, GE, LE, NE, NUMBER, STRING, EOS | 30 | TK_NAME, TK_CONC, TK_DOTS, TK_EQ, TK_GE, TK_LE, TK_NE, TK_NUMBER, |
31 | TK_STRING, TK_EOS | ||
31 | }; | 32 | }; |
32 | 33 | ||
33 | /* number of reserved words */ | 34 | /* number of reserved words */ |
34 | #define NUM_RESERVED ((int)(WHILE-FIRST_RESERVED+1)) | 35 | #define NUM_RESERVED ((int)(TK_WHILE-FIRST_RESERVED+1)) |
35 | 36 | ||
36 | 37 | ||
37 | #ifndef MAX_IFS | 38 | #ifndef MAX_IFS |
@@ -53,8 +54,8 @@ typedef struct LexState { | |||
53 | struct FuncState *fs; /* `FuncState' is private to the parser */ | 54 | struct FuncState *fs; /* `FuncState' is private to the parser */ |
54 | struct lua_State *L; | 55 | struct lua_State *L; |
55 | union { | 56 | union { |
56 | real r; | 57 | Number r; |
57 | TaggedString *ts; | 58 | TString *ts; |
58 | } seminfo; /* semantics information */ | 59 | } seminfo; /* semantics information */ |
59 | struct zio *z; /* input stream */ | 60 | struct zio *z; /* input stream */ |
60 | int linenumber; /* input line counter */ | 61 | int linenumber; /* input line counter */ |