summaryrefslogtreecommitdiffstats
path: root/Sencha-lang/AST/WhileNode.h
blob: 136d9762e9f269724f796f70c6eee503e46a956b (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
/*
 * 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 void execute();
	bool evaluate_condition();

};

#endif /* WHILENODE_H_ */