aboutsummaryrefslogtreecommitdiff
path: root/semantics.h
diff options
context:
space:
mode:
Diffstat (limited to 'semantics.h')
-rw-r--r--semantics.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/semantics.h b/semantics.h
index fbbcf02..d781737 100644
--- a/semantics.h
+++ b/semantics.h
@@ -14,6 +14,7 @@ struct CVar {
CVar_t next; /* next in the linked list */
CType_t type;
int offset;
+ int is_const;
CNode *ast;
};
@@ -119,6 +120,7 @@ struct CScope {
typedef struct ExpType {
CType_t type;
int lval;
+ int is_var;
} ExpType;
CScope_t cscope_create();