diff options
Diffstat (limited to 'src/symbol_table.h')
-rw-r--r-- | src/symbol_table.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/symbol_table.h b/src/symbol_table.h index 9926fec..fe0e35c 100644 --- a/src/symbol_table.h +++ b/src/symbol_table.h | |||
@@ -11,10 +11,13 @@ | |||
11 | #include <string.h> | 11 | #include <string.h> |
12 | 12 | ||
13 | #define MAXNAME 32 | 13 | #define MAXNAME 32 |
14 | #define INT 0 | ||
15 | #define CHAR 1 | ||
16 | #define MAXSYMBOLS 256 | 14 | #define MAXSYMBOLS 256 |
17 | 15 | ||
16 | typedef enum type { | ||
17 | INT, | ||
18 | CHAR | ||
19 | } Type; | ||
20 | |||
18 | typedef struct { | 21 | typedef struct { |
19 | char name[MAXNAME]; | 22 | char name[MAXNAME]; |
20 | int type; | 23 | int type; |