summaryrefslogtreecommitdiffstats
path: root/Sencha-lang/AST/PostfixExpression.h
blob: b6e4db1be646683704627a647f1ef961269dca60 (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
30
31
32
33
34
35
36
/*
 * PostfixExpression.h
 *
 *  Created on: Dec 5, 2012
 *      Author: attero
 */

#ifndef POSTFIXEXPRESSION_H_
#define POSTFIXEXPRESSION_H_
#include "ASTExpression.h"
#include "ASTStatement.h"
#include "../Context.h"

/**
 * PostfixExpression is in current implementation an abstraction
 * of function call
 */
class PostfixExpression : public ASTExpression {
public:
	std::string name;
	bool native;
	Context * context;
	std::vector<ASTExpression *> arguments;
	void set_name(std::string name);
	void add_argument(ASTExpression * expression);

	virtual SenchaObject evaluate();
	virtual void execute();
	virtual void execute_quietly(){ execute();
		};

	PostfixExpression( Context * context);
	virtual ~PostfixExpression();
};

#endif /* POSTFIXEXPRESSION_H_ */