35 lines
768 B
C++
35 lines
768 B
C++
/*
|
|
* PostfixExpression.h
|
|
*
|
|
* Created on: Dec 5, 2012
|
|
* Author: attero
|
|
*/
|
|
|
|
#ifndef POSTFIXEXPRESSION_H_
|
|
#define POSTFIXEXPRESSION_H_
|
|
#include "ASTExpression.h"
|
|
#include "ASTStatement.h"
|
|
#include "../ContextManager.h"
|
|
|
|
/**
|
|
* PostfixExpression is in current implementation an abstraction
|
|
* of function call
|
|
*/
|
|
class PostfixExpression : public ASTExpression {
|
|
public:
|
|
std::string name;
|
|
ContextManager * context;
|
|
bool native;
|
|
std::vector<ASTExpression *> arguments;
|
|
void add_argument(ASTExpression * expression);
|
|
|
|
virtual SenchaObject evaluate();
|
|
virtual void execute();
|
|
virtual void execute_quietly(){ execute();};
|
|
|
|
PostfixExpression( std::string name, ContextManager * context);
|
|
virtual ~PostfixExpression();
|
|
};
|
|
|
|
#endif /* POSTFIXEXPRESSION_H_ */
|