summaryrefslogtreecommitdiff
path: root/tree.h
diff options
context:
space:
mode:
authorVicente <vicente@masba.net>2024-04-02 17:37:11 -0300
committerVicente <vicente@masba.net>2024-04-02 17:37:11 -0300
commitf84aaa169191ecc2c1ee8f928c6b1b963232bc61 (patch)
treebf7155bef6dfb06958e402da9b5fa8f15bb31751 /tree.h
parent83dc0d3875e0092c529d1260af4434818f912972 (diff)
added header
Diffstat (limited to 'tree.h')
-rw-r--r--tree.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/tree.h b/tree.h
new file mode 100644
index 0000000..cf4d825
--- /dev/null
+++ b/tree.h
@@ -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);