diff options
Diffstat (limited to 'tree.h')
-rw-r--r-- | tree.h | 18 |
1 files changed, 9 insertions, 9 deletions
@@ -1,13 +1,13 @@ enum nodeType { - BIOP, - UNOP, - LTTR + BIOP, + UNOP, + LTTR }; -typedef struct { - enum nodeType type; - char el; - struct node *child[2]; +typedef struct node { + enum nodeType type; + char el; + struct node *child[2]; } node; - -node* parse(const char *str); +node * parse(char *str); +void printTree(node *root, int level); |