aboutsummaryrefslogtreecommitdiff
path: root/tree.h
diff options
context:
space:
mode:
authorTucker Evans <tuckerevans24@gmail.com>2019-08-03 20:48:13 -0400
committerTucker Evans <tuckerevans24@gmail.com>2019-08-03 20:48:39 -0400
commit8c59ccd6e23ac63d59f5839ad410c04b393ff0c0 (patch)
tree7f73ed2cf6450614599514ca77a2646624484da8 /tree.h
parente9ae811ffaa08caef0acca643ca1e7a1ff72396f (diff)
parent12f50dec6a529784a360dfaec9dc562b810ae2fd (diff)
Merge branch 'scopes' into types
Diffstat (limited to 'tree.h')
-rw-r--r--tree.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/tree.h b/tree.h
index 5506657..0d94f6d 100644
--- a/tree.h
+++ b/tree.h
@@ -6,7 +6,6 @@ typedef struct parse_tree {
union {
int ival; /* NUM */
float rval; /* RNUM */
- char *sval; /* ID */
node *nval;
int opval; /* RELOP: LT LE GT GE EQ NE
ADDOP: PLUS MINUS OR
@@ -20,7 +19,7 @@ void aux_tree_print(ptree*, int);
void print_tree(ptree*);
ptree* mktree(int, ptree*, ptree*);
-ptree* mkid(char*);
+ptree* mkid(node*);
ptree* mkinum(int);
ptree* mkrnum(float);
ptree* mkop(int, int, ptree*, ptree*);