diff options
author | Adam NAILI | 2018-06-06 01:23:00 +0200 |
---|---|---|
committer | Adam NAILI | 2018-06-06 01:23:00 +0200 |
commit | aa16ecbb7e3a3dbd9ecc5c3d5e12f7c96a41974f (patch) | |
tree | 191ee8057f63f17f8677cee4ad290fd010b0050d /src/symbol_table.h | |
parent | 28c8d2c07a2dd8140da5ca6464c0eb8887624f34 (diff) | |
download | tpc-compiler-aa16ecbb7e3a3dbd9ecc5c3d5e12f7c96a41974f.tar.gz |
Array management
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 |