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