summaryrefslogtreecommitdiff
path: root/src/operand.cpp
blob: 67654f0b9c52e8f7719969b96845a68ca53396e7 (plain)
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;
}