summaryrefslogtreecommitdiff
path: root/src/include/substraction.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/include/substraction.hpp')
-rw-r--r--src/include/substraction.hpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/include/substraction.hpp b/src/include/substraction.hpp
new file mode 100644
index 0000000..4a5a8c7
--- /dev/null
+++ b/src/include/substraction.hpp
@@ -0,0 +1,8 @@
+#pragma once
+#include "syntax_tree.hpp"
+
+class Substraction: SyntaxTree {
+public:
+ Substraction(SyntaxTree *left, SyntaxTree *right);
+ float eval() const;
+};