aboutsummaryrefslogtreecommitdiff
path: root/src/symbol_table.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/symbol_table.h')
-rw-r--r--src/symbol_table.h7
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
16typedef enum type {
17 INT,
18 CHAR
19} Type;
20
18typedef struct { 21typedef struct {
19 char name[MAXNAME]; 22 char name[MAXNAME];
20 int type; 23 int type;