blob: 093aff188288370a65eecd0521617327ea12d620 (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
#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();
}
|