aboutsummaryrefslogtreecommitdiff
path: root/src/symbol_table.h
diff options
context:
space:
mode:
authorAdam NAILI2018-06-06 01:23:00 +0200
committerAdam NAILI2018-06-06 01:23:00 +0200
commitaa16ecbb7e3a3dbd9ecc5c3d5e12f7c96a41974f (patch)
tree191ee8057f63f17f8677cee4ad290fd010b0050d /src/symbol_table.h
parent28c8d2c07a2dd8140da5ca6464c0eb8887624f34 (diff)
downloadtpc-compiler-aa16ecbb7e3a3dbd9ecc5c3d5e12f7c96a41974f.tar.gz
Array management
Diffstat (limited to 'src/symbol_table.h')
-rw-r--r--src/symbol_table.h6
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 {
23typedef enum type { 23typedef enum type {
24 INT, 24 INT,
25 CHAR, 25 CHAR,
26 VOID_T 26 VOID_T,
27 TAB
27} Type; 28} Type;
28 29
29typedef struct { 30typedef struct {
@@ -67,7 +68,8 @@ int loc_get_addr(const char name[]);
67void loc_display_table(); 68void loc_display_table();
68void loc_clean_table(); 69void loc_clean_table();
69 70
70void check_expected_type(int type_to_check, int type_expected); 71void check_expected_type(Type type_to_check, Type type_expected);
72void check_expected_types(Type type_to_check, Type type_expected1, Type type_expected2);
71bool is_read_only(const char name[], Scope scope); 73bool is_read_only(const char name[], Scope scope);
72 74
73#endif 75#endif