aboutsummaryrefslogtreecommitdiff
path: root/semantics.h
diff options
context:
space:
mode:
Diffstat (limited to 'semantics.h')
-rw-r--r--semantics.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/semantics.h b/semantics.h
index b770156..9136ebb 100644
--- a/semantics.h
+++ b/semantics.h
@@ -109,6 +109,11 @@ typedef struct CScope {
struct CTable *ttype;
} CScope;
+typedef struct ExpType {
+ CType *type;
+ int lval;
+} ExpType;
+
CScope_t cscope_create();
CVar *cscope_lookup_var(CScope_t cs, const char *name);
CType *cscope_lookup_type(CScope_t cs, const char *name);