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/product.hpp | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 src/include/product.hpp (limited to 'src/include/product.hpp') diff --git a/src/include/product.hpp b/src/include/product.hpp new file mode 100644 index 0000000..1a87f80 --- /dev/null +++ b/src/include/product.hpp @@ -0,0 +1,9 @@ +#pragma once +#include "syntax_tree.hpp" + + +class Product: SyntaxTree { +public: + Product(SyntaxTree *left, SyntaxTree *right); + float eval() const; +}; -- cgit v1.2.3