diff options
-rw-r--r-- | tree.h | 13 |
1 files changed, 13 insertions, 0 deletions
@@ -0,0 +1,13 @@ +enum nodeType { + BIOP, + UNOP, + LTTR +}; + +typedef struct { + enum nodeType type; + char el; + struct node *child[2]; +} node; + +node* parse(const char *str); |