summaryrefslogtreecommitdiffstats
path: root/Sencha-lang/AST/BasicStatement.h
blob: 083f7c8a9c3d55b88a5bb6ab312da895281d91af (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
27
28
29
/*
 * BasicStatement.h
 *
 *  Created on: Dec 5, 2012
 *      Author: attero
 */

#ifndef BASICSTATEMENT_H_
#define BASICSTATEMENT_H_
#include <iostream>
#include "ASTExpression.h"
#include "ASTStatement.h"
#include "../Visitor.h"

/**
 * BasicStatement is just one simple statement which is actually some expression and (;) or not
 * or block of statements like { stat1; stat2; stat3; } of any type
 */
class BasicStatement : public ASTStatement {
public:
	BasicStatement();
	void add_expression(ASTExpression * expr);
	virtual SenchaObject evaluate();
	virtual SenchaObject execute();
	virtual void accept(Visitor * vistitor);
	virtual ~BasicStatement();
};

#endif /* BASICSTATEMENT_H_ */