2012-12-05 19:32:43 +00:00
|
|
|
/*
|
|
|
|
* PostfixExpression.h
|
|
|
|
*
|
|
|
|
* Created on: Dec 5, 2012
|
|
|
|
* Author: attero
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef POSTFIXEXPRESSION_H_
|
|
|
|
#define POSTFIXEXPRESSION_H_
|
2012-12-05 20:31:06 +00:00
|
|
|
#include "ASTExpression.h"
|
2012-12-07 15:58:27 +00:00
|
|
|
#include "ASTStatement.h"
|
2012-12-10 10:45:09 +00:00
|
|
|
#include "../Context.h"
|
2012-12-05 19:32:43 +00:00
|
|
|
|
2012-12-05 20:31:06 +00:00
|
|
|
class PostfixExpression : public ASTExpression {
|
2012-12-05 19:32:43 +00:00
|
|
|
public:
|
2012-12-09 16:42:13 +00:00
|
|
|
std::string name;
|
|
|
|
bool native;
|
2012-12-10 10:45:09 +00:00
|
|
|
Context * context;
|
2012-12-07 15:58:27 +00:00
|
|
|
std::vector<ASTExpression *> arguments;
|
2012-12-09 16:42:13 +00:00
|
|
|
void set_name(std::string name);
|
2012-12-07 15:58:27 +00:00
|
|
|
void add_argument(ASTExpression * expression);
|
|
|
|
|
|
|
|
virtual SenchaObject evaluate();
|
|
|
|
virtual void execute();
|
2012-12-09 11:57:51 +00:00
|
|
|
virtual void execute_quietly(){//do nothing
|
|
|
|
};
|
2012-12-07 15:58:27 +00:00
|
|
|
|
|
|
|
|
|
|
|
std::string debug() ;
|
|
|
|
|
2012-12-10 10:45:09 +00:00
|
|
|
PostfixExpression(ASTNode * parent, Context * context);
|
2012-12-05 19:32:43 +00:00
|
|
|
virtual ~PostfixExpression();
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif /* POSTFIXEXPRESSION_H_ */
|