diff options
Diffstat (limited to 'src/include/operand.hpp')
-rw-r--r-- | src/include/operand.hpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/include/operand.hpp b/src/include/operand.hpp new file mode 100644 index 0000000..cc638de --- /dev/null +++ b/src/include/operand.hpp @@ -0,0 +1,10 @@ +#pragma once +#include "syntax_tree.hpp" + + +class Operand: SyntaxTree { + int value; +public: + Operand(int value); + float eval() const; +}; |