diff options
| author | 2014-01-20 07:52:58 +0100 | |
|---|---|---|
| committer | 2014-01-20 07:52:58 +0100 | |
| commit | 488a7a8b217f3636b2887257e38e8477041b566e (patch) | |
| tree | 7ba1c3d71ca6965472d4f5402a77890bef63b9c1 /node/parenthesesnode.cpp | |
| parent | 33329db82c9e9be5a21e15f8a61249a0d5f0a178 (diff) | |
| download | OneRoll-488a7a8b217f3636b2887257e38e8477041b566e.tar.gz OneRoll-488a7a8b217f3636b2887257e38e8477041b566e.zip | |
adding parantheses management (unworking yet)
Diffstat (limited to 'node/parenthesesnode.cpp')
| -rw-r--r-- | node/parenthesesnode.cpp | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/node/parenthesesnode.cpp b/node/parenthesesnode.cpp new file mode 100644 index 0000000..7bd5a6a --- /dev/null +++ b/node/parenthesesnode.cpp @@ -0,0 +1,29 @@ +#include "parenthesesnode.h" + +ParenthesesNode::ParenthesesNode() +{ + +} +void ParenthesesNode::setInternelNode(ExecutionNode* node) +{ + m_internalNode = node; +} +void ParenthesesNode::run(ExecutionNode* /*previous*/) +{ + if(NULL!=m_internalNode) + { + m_internalNode->run(this); + ExecutionNode* temp=m_internalNode; + while(NULL!=temp->getNextNode()) + { + temp=temp->getNextNode(); + } + m_result = m_internalNode->getResult(); + } + + + if(NULL!=m_nextNode) + { + m_nextNode->run(this); + } +} |