blob: bfd77dea52ae8daee0521aac6548b24004c0779b (
plain)
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
|
/*
* WhileNode.h
*
* Created on: Dec 10, 2012
* Author: attero
*/
#ifndef WHILENODE_H_
#define WHILENODE_H_
#include "ASTStatement.h"
#include "ASTExpression.h"
class WhileNode: public ASTStatement {
public:
WhileNode(ASTNode * parent);
virtual ~WhileNode();
ASTStatement * body;
void add_condition(ASTExpression * expression);
void add_body(ASTStatement * statement);
virtual std::string debug();
virtual void execute();
bool evaluate_condition();
};
#endif /* WHILENODE_H_ */
|