diff options
author | Teddy <[email protected]> | 2014-04-04 00:06:23 +0800 |
---|---|---|
committer | Teddy <[email protected]> | 2014-04-04 00:06:23 +0800 |
commit | ef1c46b1eef2b22100d9eca9c4d0e6ffab7c7eab (patch) | |
tree | d77ea2311d25b608b1e1a951668319ec4359bbf3 /ast.h | |
parent | cd34e28676aa32fdc60c2ba54d6f4f6dbba33132 (diff) |
some basic semantics analysis
Diffstat (limited to 'ast.h')
-rw-r--r-- | ast.h | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -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 { |