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.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/symbol_table.h b/src/symbol_table.h
index d0ac440..b2c8879 100644
--- a/src/symbol_table.h
+++ b/src/symbol_table.h
@@ -9,6 +9,7 @@
9#include <stdio.h> 9#include <stdio.h>
10#include <stdlib.h> 10#include <stdlib.h>
11#include <string.h> 11#include <string.h>
12#include <stdbool.h>
12 13
13#define MAXNAME 32 14#define MAXNAME 32
14#define MAXSYMBOLS 256 15#define MAXSYMBOLS 256
@@ -24,6 +25,7 @@ typedef struct {
24 char name[MAXNAME]; 25 char name[MAXNAME];
25 int type; 26 int type;
26 int addr; 27 int addr;
28 bool read_only;
27} STentry; 29} STentry;
28 30
29typedef struct { 31typedef struct {
@@ -48,10 +50,12 @@ void fun_add(const char name[], int rt_type, int nb_par);
48void fun_display_table(); 50void fun_display_table();
49int fun_lookup(const char name[], int nb_param); 51int fun_lookup(const char name[], int nb_param);
50void glo_addVar(const char name[], int type); 52void glo_addVar(const char name[], int type);
53void glo_addConst(const char name[]);
51int glo_lookup(const char name[]); 54int glo_lookup(const char name[]);
52int glo_get_addr(const char name[]); 55int glo_get_addr(const char name[]);
53void glo_display_table(); 56void glo_display_table();
54void loc_addVar(const char name[], int type); 57void loc_addVar(const char name[], int type);
58void loc_addConst(const char name[]);
55int loc_lookup(const char name[]); 59int loc_lookup(const char name[]);
56int loc_get_addr(const char name[]); 60int loc_get_addr(const char name[]);
57void loc_display_table(); 61void loc_display_table();