1 2 3 4 5 6 7 8 9 10 11 12 13
#include "include/operand.hpp" #include "include/syntax_tree.hpp" #include "include/tokenizer.hpp" Operand::Operand(int value) : SyntaxTree{nullptr, nullptr} ,value{value} {} float Operand::eval() const { return value; }