aboutsummaryrefslogtreecommitdiff
path: root/ast.h
diff options
context:
space:
mode:
authorTeddy <ted.sybil@gmail.com>2014-04-04 00:06:23 +0800
committerTeddy <ted.sybil@gmail.com>2014-04-04 00:06:23 +0800
commitef1c46b1eef2b22100d9eca9c4d0e6ffab7c7eab (patch)
treed77ea2311d25b608b1e1a951668319ec4359bbf3 /ast.h
parentcd34e28676aa32fdc60c2ba54d6f4f6dbba33132 (diff)
some basic semantics analysis
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 {