diff options
Diffstat (limited to 'src/symbol_table.h')
-rw-r--r-- | src/symbol_table.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/symbol_table.h b/src/symbol_table.h index 23cd618..3f6977b 100644 --- a/src/symbol_table.h +++ b/src/symbol_table.h | |||
@@ -23,7 +23,8 @@ typedef enum scope { | |||
23 | typedef enum type { | 23 | typedef enum type { |
24 | INT, | 24 | INT, |
25 | CHAR, | 25 | CHAR, |
26 | VOID_T | 26 | VOID_T, |
27 | TAB | ||
27 | } Type; | 28 | } Type; |
28 | 29 | ||
29 | typedef struct { | 30 | typedef struct { |
@@ -67,7 +68,8 @@ int loc_get_addr(const char name[]); | |||
67 | void loc_display_table(); | 68 | void loc_display_table(); |
68 | void loc_clean_table(); | 69 | void loc_clean_table(); |
69 | 70 | ||
70 | void check_expected_type(int type_to_check, int type_expected); | 71 | void check_expected_type(Type type_to_check, Type type_expected); |
72 | void check_expected_types(Type type_to_check, Type type_expected1, Type type_expected2); | ||
71 | bool is_read_only(const char name[], Scope scope); | 73 | bool is_read_only(const char name[], Scope scope); |
72 | 74 | ||
73 | #endif | 75 | #endif |