diff options
author | Tucker Evans <tuckerevans24@gmail.com> | 2019-07-27 21:09:10 -0400 |
---|---|---|
committer | Tucker Evans <tuckerevans24@gmail.com> | 2019-07-27 21:09:10 -0400 |
commit | f4d98d609e09ae172dbcccff742cc654d8b51a52 (patch) | |
tree | 739026dd7a36015b6f23f2670781c247f92171e2 /tree.h | |
parent | 60507214c098beaf3ae01a202e564bfe2f7c8364 (diff) |
Add initial scope checking
Diffstat (limited to 'tree.h')
-rw-r--r-- | tree.h | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -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*); |