aboutsummaryrefslogtreecommitdiff
path: root/inc/parse.h
diff options
context:
space:
mode:
Diffstat (limited to 'inc/parse.h')
-rw-r--r--inc/parse.h13
1 files changed, 9 insertions, 4 deletions
diff --git a/inc/parse.h b/inc/parse.h
index c1e21b2..e79fb26 100644
--- a/inc/parse.h
+++ b/inc/parse.h
@@ -15,11 +15,11 @@ struct term {
size_t depth;
union {
struct {
- hash_t term;
+ struct term *term;
} abs;
struct {
- hash_t lhs;
- hash_t rhs;
+ struct term *lhs;
+ struct term *rhs;
} app;
struct {
int index;
@@ -27,7 +27,12 @@ struct term {
} u;
};
-hash_t parse_blc(char **term, int depth);
+struct term_handle {
+ struct term *term;
+ hash_t hash;
+};
+
+struct term_handle parse_blc(char **term, size_t depth);
int parse_get_max_depth(void);
#endif