aboutsummaryrefslogtreecommitdiff
path: root/tree.h
diff options
context:
space:
mode:
authorTucker Evans <tuckerevans24@gmail.com>2019-10-06 15:39:16 -0400
committerTucker Evans <tuckerevans24@gmail.com>2019-10-06 15:39:51 -0400
commitaf85ccd5cda88601226323fbe7e922962ccf1ad0 (patch)
tree0c030f0c6858a9052d46c4d7153f56cfd0886950 /tree.h
parenta0ae72558a301f4a0082739712d30919f5e1454e (diff)
Add label in parse tree for code generation
Diffstat (limited to 'tree.h')
-rw-r--r--tree.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/tree.h b/tree.h
index b0a1085..cd8a947 100644
--- a/tree.h
+++ b/tree.h
@@ -16,6 +16,8 @@ typedef struct parse_tree {
} attr;
int ret_type;
struct parse_tree *l, *r;
+
+ int label;
} ptree;
void aux_tree_print(ptree*, int);