diff options
Diffstat (limited to 'src/nodes.cc')
-rw-r--r-- | src/nodes.cc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/nodes.cc b/src/nodes.cc index 9ef0e6a..e75c02b 100644 --- a/src/nodes.cc +++ b/src/nodes.cc @@ -16,7 +16,7 @@ double OperandNode::solve() { return this->value_; } -NodeType OperandNode::getType() { +NodeType OperandNode::type() { return NodeType::OPERAND; } @@ -64,7 +64,7 @@ double OperatorNode::solve() { } } -NodeType OperatorNode::getType() { +NodeType OperatorNode::type() { return NodeType::OPERATOR; } @@ -91,7 +91,7 @@ std::string OperatorNode::print() { } } -TokenType OperatorNode::getToken() { +TokenType OperatorNode::token() { return this->operator_; } @@ -113,7 +113,7 @@ double ConstantNode::solve() { } } -NodeType ConstantNode::getType() { +NodeType ConstantNode::type() { return NodeType::CONSTANT; } |