diff options
Diffstat (limited to 'inc/term.h')
-rw-r--r-- | inc/term.h | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -1,20 +1,23 @@ #ifndef TERM_H #define TERM_H -typedef int bruijn; typedef enum { INV, ABS, APP, VAR } term_type; struct term { term_type type; union { struct { + int name; struct term *term; } abs; struct { struct term *lhs; struct term *rhs; } app; - bruijn var; + struct { + int name; + enum { BRUIJN_INDEX, BARENDREGT_VARIABLE } type; + } var; } u; }; |