summaryrefslogtreecommitdiff
path: root/tree.h
diff options
context:
space:
mode:
Diffstat (limited to 'tree.h')
-rw-r--r--tree.h18
1 files changed, 9 insertions, 9 deletions
diff --git a/tree.h b/tree.h
index cf4d825..a58d270 100644
--- a/tree.h
+++ b/tree.h
@@ -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);