aboutsummaryrefslogtreecommitdiff
path: root/ast.h
diff options
context:
space:
mode:
Diffstat (limited to 'ast.h')
-rw-r--r--ast.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/ast.h b/ast.h
index 9412fa7..55a0e8a 100644
--- a/ast.h
+++ b/ast.h
@@ -2,6 +2,7 @@
#define AST_H
#include <stdarg.h>
#include "const.h"
+#include "semantics.h"
#include "cibic.tab.h"
typedef struct CNode {
@@ -44,6 +45,10 @@ typedef struct CNode {
int subtype;
char *strval;
} rec;
+ union {
+ CType *type;
+ CVar *var_ref;
+ } ext;
struct CNode *chd, *next;
/* For error reporting */
struct Location {