blob: 7bd5a6aa88f36a8383207257b99e7716dd077f5b (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
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);
}
}
|