#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(); }