aboutsummaryrefslogtreecommitdiff
path: root/src/nodes.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/nodes.cc')
-rw-r--r--src/nodes.cc16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/nodes.cc b/src/nodes.cc
index bab7ff7..1ab1502 100644
--- a/src/nodes.cc
+++ b/src/nodes.cc
@@ -1,4 +1,5 @@
#include "nodes.h"
+#include "utils.h"
#include "exceptions.h"
#include <cmath>
@@ -93,4 +94,19 @@ TokenType OperatorNode::getToken() {
return this->operator_;
}
+ConstantNode::ConstantNode(std::string identifier):
+ identifier_(identifier) { }
+
+double ConstantNode::solve() {
+
+}
+
+NodeType ConstantNode::getType() {
+ return NodeType::CONSTANT;
+}
+
+std::string ConstantNode::print() {
+ return this->identifier_;
+}
+
}