aboutsummaryrefslogtreecommitdiff
path: root/src/nodes.cc
diff options
context:
space:
mode:
authorAdrian Kummerländer2013-10-19 19:35:16 +0200
committerAdrian Kummerländer2013-10-19 19:35:16 +0200
commit754cc721222ccb01acc4d93ffd8f88f172a0cdd0 (patch)
treef386f8bbf9c6909c6d7a965bdb66ddd2b99ac65f /src/nodes.cc
parentaca18e1803b3d54e6c9d7444e8b9c1bf09d12f52 (diff)
downloadSimpleParser-754cc721222ccb01acc4d93ffd8f88f172a0cdd0.tar
SimpleParser-754cc721222ccb01acc4d93ffd8f88f172a0cdd0.tar.gz
SimpleParser-754cc721222ccb01acc4d93ffd8f88f172a0cdd0.tar.bz2
SimpleParser-754cc721222ccb01acc4d93ffd8f88f172a0cdd0.tar.lz
SimpleParser-754cc721222ccb01acc4d93ffd8f88f172a0cdd0.tar.xz
SimpleParser-754cc721222ccb01acc4d93ffd8f88f172a0cdd0.tar.zst
SimpleParser-754cc721222ccb01acc4d93ffd8f88f172a0cdd0.zip
POC: alphabetic constants
* New priority for alphabetic characters * Overloaded OperandNode constructor * Currently not usable, only basic proof of concept
Diffstat (limited to 'src/nodes.cc')
-rw-r--r--src/nodes.cc3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/nodes.cc b/src/nodes.cc
index 390eac7..fac74a0 100644
--- a/src/nodes.cc
+++ b/src/nodes.cc
@@ -10,6 +10,9 @@ namespace SimpleParser {
OperandNode::OperandNode(double val):
value_(val) { }
+OperandNode::OperandNode(std::string identifier):
+ value_(42) { }
+
double OperandNode::solve() {
return this->value_;
}