#include "include/product.hpp" #include "include/syntax_tree.hpp" Product::Product(SyntaxTree *left, SyntaxTree *right) : SyntaxTree{left, right} {} float Product::eval() const { return left->eval() * right->eval(); }