diff options
author | Adrian Kummerländer | 2013-10-19 21:41:19 +0200 |
---|---|---|
committer | Adrian Kummerländer | 2013-10-19 21:41:19 +0200 |
commit | 69ce370c9ebf92caea64ef1ba28a502affdad3d5 (patch) | |
tree | 35d84b2c3080622f990bfe75396966c861d75e92 /src/tree.h | |
parent | c292b29f3bb87cf11edf899c023cfb574c20ed6c (diff) | |
download | SimpleParser-69ce370c9ebf92caea64ef1ba28a502affdad3d5.tar SimpleParser-69ce370c9ebf92caea64ef1ba28a502affdad3d5.tar.gz SimpleParser-69ce370c9ebf92caea64ef1ba28a502affdad3d5.tar.bz2 SimpleParser-69ce370c9ebf92caea64ef1ba28a502affdad3d5.tar.lz SimpleParser-69ce370c9ebf92caea64ef1ba28a502affdad3d5.tar.xz SimpleParser-69ce370c9ebf92caea64ef1ba28a502affdad3d5.tar.zst SimpleParser-69ce370c9ebf92caea64ef1ba28a502affdad3d5.zip |
Switched OperatorNode to TokenType
* OperatorNode class now uses TokenType for internal operator storage and logic selection
* print-Method resolves the TokenType back into its character representation
Diffstat (limited to 'src/tree.h')
-rw-r--r-- | src/tree.h | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -19,7 +19,7 @@ class Tree { private: Node* addOperand(Node**, double); Node* addOperand(Node**, std::string); - Node* addOperator(Node**, char); + Node* addOperator(Node**, TokenType); Node* buildTree(std::string); std::vector<std::unique_ptr<Node>> node_collection_; |