aboutsummaryrefslogtreecommitdiff
path: root/src/symboltable.h
diff options
context:
space:
mode:
authorAdam NAILI2018-04-22 15:32:40 +0200
committerAdam NAILI2018-04-22 15:32:40 +0200
commita431f189d33af68ea179e464c889761e65ed1f08 (patch)
tree2da926fa6eccd0d2b9459be841fd0168d474e607 /src/symboltable.h
parent5d83670f6b0b142bcda19270d3c9b50f9370bee8 (diff)
downloadtpc-compiler-a431f189d33af68ea179e464c889761e65ed1f08.tar.gz
Basic implementation of the symbol table
Diffstat (limited to 'src/symboltable.h')
-rw-r--r--src/symboltable.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/symboltable.h b/src/symboltable.h
index cc828fa..02e47a4 100644
--- a/src/symboltable.h
+++ b/src/symboltable.h
@@ -13,6 +13,7 @@
13typedef struct { 13typedef struct {
14 char name[MAXNAME]; 14 char name[MAXNAME];
15 int type; 15 int type;
16 int addr;
16} STentry; 17} STentry;
17 18
18 19
@@ -26,5 +27,5 @@ typedef struct {
26void addVar(const char name[], int type); 27void addVar(const char name[], int type);
27void lookup(const char name[]); 28void lookup(const char name[]);
28void display_table(); 29void display_table();
29 30int get_type(const char name[]);
30#endif \ No newline at end of file 31#endif \ No newline at end of file