diff options
Diffstat (limited to 'src/include/product.hpp')
-rw-r--r-- | src/include/product.hpp | 9 |
1 files changed, 9 insertions, 0 deletions
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; +}; |