diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 1996-02-13 14:30:39 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 1996-02-13 14:30:39 -0300 |
commit | 0f4903a5d79fb594115c5603072d0dce77b2b84e (patch) | |
tree | 96223404b48aef1a94b813e2ad03362701d0e0c1 | |
parent | 772f25d3dd3c5078988b8c06ddf64c3b78f7dfb6 (diff) | |
download | lua-0f4903a5d79fb594115c5603072d0dce77b2b84e.tar.gz lua-0f4903a5d79fb594115c5603072d0dce77b2b84e.tar.bz2 lua-0f4903a5d79fb594115c5603072d0dce77b2b84e.zip |
new header "lex.h".
-rw-r--r-- | inout.c | 5 | ||||
-rw-r--r-- | lex.c | 4 | ||||
-rw-r--r-- | lua.stx | 3 | ||||
-rw-r--r-- | makefile | 15 | ||||
-rw-r--r-- | opcode.h | 13 |
5 files changed, 15 insertions, 25 deletions
@@ -5,15 +5,14 @@ | |||
5 | ** Also provides some predefined lua functions. | 5 | ** Also provides some predefined lua functions. |
6 | */ | 6 | */ |
7 | 7 | ||
8 | char *rcs_inout="$Id: inout.c,v 2.29 1996/02/07 14:13:47 roberto Exp roberto $"; | 8 | char *rcs_inout="$Id: inout.c,v 2.30 1996/02/12 18:32:40 roberto Exp roberto $"; |
9 | 9 | ||
10 | #include <stdio.h> | 10 | #include <stdio.h> |
11 | #include <stdlib.h> | 11 | #include <stdlib.h> |
12 | #include <string.h> | 12 | #include <string.h> |
13 | 13 | ||
14 | #include "mem.h" | 14 | #include "lex.h" |
15 | #include "opcode.h" | 15 | #include "opcode.h" |
16 | #include "hash.h" | ||
17 | #include "inout.h" | 16 | #include "inout.h" |
18 | #include "table.h" | 17 | #include "table.h" |
19 | #include "tree.h" | 18 | #include "tree.h" |
@@ -1,4 +1,4 @@ | |||
1 | char *rcs_lex = "$Id: lex.c,v 2.24 1996/02/09 19:35:23 roberto Exp roberto $"; | 1 | char *rcs_lex = "$Id: lex.c,v 2.25 1996/02/12 18:32:40 roberto Exp roberto $"; |
2 | 2 | ||
3 | 3 | ||
4 | #include <ctype.h> | 4 | #include <ctype.h> |
@@ -8,7 +8,7 @@ char *rcs_lex = "$Id: lex.c,v 2.24 1996/02/09 19:35:23 roberto Exp roberto $"; | |||
8 | #include "mem.h" | 8 | #include "mem.h" |
9 | #include "tree.h" | 9 | #include "tree.h" |
10 | #include "table.h" | 10 | #include "table.h" |
11 | #include "opcode.h" | 11 | #include "lex.h" |
12 | #include "inout.h" | 12 | #include "inout.h" |
13 | #include "luadebug.h" | 13 | #include "luadebug.h" |
14 | #include "parser.h" | 14 | #include "parser.h" |
@@ -1,6 +1,6 @@ | |||
1 | %{ | 1 | %{ |
2 | 2 | ||
3 | char *rcs_luastx = "$Id: lua.stx,v 3.29 1996/02/07 18:10:27 roberto Exp roberto $"; | 3 | char *rcs_luastx = "$Id: lua.stx,v 3.30 1996/02/12 18:32:40 roberto Exp roberto $"; |
4 | 4 | ||
5 | #include <stdio.h> | 5 | #include <stdio.h> |
6 | #include <stdlib.h> | 6 | #include <stdlib.h> |
@@ -8,6 +8,7 @@ char *rcs_luastx = "$Id: lua.stx,v 3.29 1996/02/07 18:10:27 roberto Exp roberto | |||
8 | 8 | ||
9 | #include "luadebug.h" | 9 | #include "luadebug.h" |
10 | #include "mem.h" | 10 | #include "mem.h" |
11 | #include "lex.h" | ||
11 | #include "opcode.h" | 12 | #include "opcode.h" |
12 | #include "hash.h" | 13 | #include "hash.h" |
13 | #include "inout.h" | 14 | #include "inout.h" |
@@ -1,4 +1,4 @@ | |||
1 | # $Id: makefile,v 1.18 1996/01/09 20:22:08 roberto Exp roberto $ | 1 | # $Id: makefile,v 1.19 1996/02/07 18:14:38 roberto Exp roberto $ |
2 | 2 | ||
3 | #configuration | 3 | #configuration |
4 | 4 | ||
@@ -69,19 +69,18 @@ clear : | |||
69 | fallback.o : fallback.c mem.h fallback.h opcode.h lua.h types.h tree.h func.h | 69 | fallback.o : fallback.c mem.h fallback.h opcode.h lua.h types.h tree.h func.h |
70 | func.o : func.c luadebug.h lua.h table.h tree.h types.h opcode.h func.h mem.h | 70 | func.o : func.c luadebug.h lua.h table.h tree.h types.h opcode.h func.h mem.h |
71 | hash.o : hash.c mem.h opcode.h lua.h types.h tree.h func.h hash.h table.h | 71 | hash.o : hash.c mem.h opcode.h lua.h types.h tree.h func.h hash.h table.h |
72 | inout.o : inout.c mem.h opcode.h lua.h types.h tree.h func.h hash.h inout.h \ | 72 | inout.o : inout.c lex.h opcode.h lua.h types.h tree.h func.h inout.h table.h |
73 | table.h | ||
74 | iolib.o : iolib.c lua.h luadebug.h lualib.h | 73 | iolib.o : iolib.c lua.h luadebug.h lualib.h |
75 | lex.o : lex.c mem.h tree.h types.h table.h opcode.h lua.h func.h inout.h luadebug.h \ | 74 | lex.o : lex.c mem.h tree.h types.h table.h opcode.h lua.h func.h lex.h inout.h \ |
76 | parser.h ugly.h | 75 | luadebug.h parser.h ugly.h |
77 | lua.o : lua.c lua.h lualib.h | 76 | lua.o : lua.c lua.h lualib.h |
78 | mathlib.o : mathlib.c lualib.h lua.h | 77 | mathlib.o : mathlib.c lualib.h lua.h |
79 | mem.o : mem.c mem.h lua.h table.h tree.h types.h opcode.h func.h | 78 | mem.o : mem.c mem.h lua.h table.h tree.h types.h opcode.h func.h |
80 | opcode.o : opcode.c luadebug.h lua.h mem.h opcode.h types.h tree.h func.h hash.h \ | 79 | opcode.o : opcode.c luadebug.h lua.h mem.h opcode.h types.h tree.h func.h hash.h \ |
81 | inout.h table.h fallback.h | 80 | inout.h table.h fallback.h |
82 | parser.o : parser.c luadebug.h lua.h mem.h opcode.h types.h tree.h func.h hash.h \ | 81 | parser.o : parser.c luadebug.h lua.h mem.h lex.h opcode.h types.h tree.h func.h \ |
83 | inout.h table.h | 82 | hash.h inout.h table.h |
84 | strlib.o : strlib.c lua.h lualib.h | 83 | strlib.o : strlib.c lua.h lualib.h |
85 | table.o : table.c mem.h opcode.h lua.h types.h tree.h func.h hash.h table.h \ | 84 | table.o : table.c mem.h opcode.h lua.h types.h tree.h func.h hash.h table.h \ |
86 | inout.h fallback.h luadebug.h | 85 | inout.h fallback.h luadebug.h |
87 | tree.o : tree.c mem.h lua.h tree.h types.h table.h opcode.h func.h | 86 | tree.o : tree.c mem.h lua.h tree.h types.h hash.h opcode.h func.h table.h |
@@ -1,6 +1,6 @@ | |||
1 | /* | 1 | /* |
2 | ** TeCGraf - PUC-Rio | 2 | ** TeCGraf - PUC-Rio |
3 | ** $Id: opcode.h,v 3.15 1995/12/21 16:14:04 roberto Exp roberto $ | 3 | ** $Id: opcode.h,v 3.16 1996/01/26 18:03:19 roberto Exp roberto $ |
4 | */ | 4 | */ |
5 | 5 | ||
6 | #ifndef opcode_h | 6 | #ifndef opcode_h |
@@ -11,9 +11,6 @@ | |||
11 | #include "tree.h" | 11 | #include "tree.h" |
12 | #include "func.h" | 12 | #include "func.h" |
13 | 13 | ||
14 | #ifndef real | ||
15 | #define real float | ||
16 | #endif | ||
17 | 14 | ||
18 | #define FIELDS_PER_FLUSH 40 | 15 | #define FIELDS_PER_FLUSH 40 |
19 | 16 | ||
@@ -74,12 +71,9 @@ typedef enum | |||
74 | #define MULT_RET 255 | 71 | #define MULT_RET 255 |
75 | 72 | ||
76 | 73 | ||
77 | typedef void (*Cfunction) (void); | ||
78 | typedef int (*Input) (void); | ||
79 | |||
80 | typedef union | 74 | typedef union |
81 | { | 75 | { |
82 | Cfunction f; | 76 | lua_CFunction f; |
83 | real n; | 77 | real n; |
84 | TaggedString *ts; | 78 | TaggedString *ts; |
85 | TFunc *tf; | 79 | TFunc *tf; |
@@ -140,9 +134,6 @@ typedef union | |||
140 | /* Exported functions */ | 134 | /* Exported functions */ |
141 | char *lua_strdup (char *l); | 135 | char *lua_strdup (char *l); |
142 | 136 | ||
143 | void lua_setinput (Input fn); /* from "lex.c" module */ | ||
144 | char *lua_lasttext (void); /* from "lex.c" module */ | ||
145 | int luaY_lex (void); /* from "lex.c" module */ | ||
146 | void lua_parse (TFunc *tf); /* from "lua.stx" module */ | 137 | void lua_parse (TFunc *tf); /* from "lua.stx" module */ |
147 | void luaI_codedebugline (int line); /* from "lua.stx" module */ | 138 | void luaI_codedebugline (int line); /* from "lua.stx" module */ |
148 | void lua_travstack (int (*fn)(Object *)); | 139 | void lua_travstack (int (*fn)(Object *)); |