summaryrefslogtreecommitdiff
path: root/myfind/myfind/src/shunting_yard.h
diff options
context:
space:
mode:
Diffstat (limited to 'myfind/myfind/src/shunting_yard.h')
-rw-r--r--myfind/myfind/src/shunting_yard.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/myfind/myfind/src/shunting_yard.h b/myfind/myfind/src/shunting_yard.h
new file mode 100644
index 0000000..4813e37
--- /dev/null
+++ b/myfind/myfind/src/shunting_yard.h
@@ -0,0 +1,10 @@
+#ifndef SHUNTING_YARD_H
+#define SHUNTING_YARD_H
+
+// Returns NULL on token errors, or adress of ast root node on success
+// Frees the array of tokens but not the tokens
+struct ast *shunting_yard(struct ast **tokens, int len, int act);
+
+void ast_destroy(struct ast *ast);
+
+#endif /* ! SHUNTING_YARD_H*/