diff options
Diffstat (limited to 'src/operand.cpp')
-rw-r--r-- | src/operand.cpp | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/operand.cpp b/src/operand.cpp new file mode 100644 index 0000000..67654f0 --- /dev/null +++ b/src/operand.cpp @@ -0,0 +1,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; +} |