From 404826e78a56e15e20d3938aed80945295921745 Mon Sep 17 00:00:00 2001 From: HombreLaser Date: Sat, 22 Jun 2024 16:45:04 -0600 Subject: Add parser --- src/include/substraction.hpp | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 src/include/substraction.hpp (limited to 'src/include/substraction.hpp') 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; +}; -- cgit v1.2.3