blob: aa77d4ee0b88e9a3e59b146ea2155352c4a493d7 (
plain)
1
2
3
4
5
6
7
8
9
|
#include "include/sum.hpp"
#include "include/syntax_tree.hpp"
Sum::Sum(SyntaxTree *left, SyntaxTree *right) : SyntaxTree{left, right} {}
float Sum::eval() const {
return left->eval() + left->eval();
}
|