#ifndef TREE_H_HG #define TREE_H_HG enum nodeType { BIOP, UNOP, LTTR }; typedef struct node { enum nodeType type; char el; union { struct node *child[2]; struct { struct node *lhs, *rhs; }; struct node *value; }; } node; node * parse(char *str); void printTree(node *root, int level); #endif