sencha-lang/Sencha-lang/AST/PostfixExpression.h

36 lines
715 B
C
Raw Normal View History

2012-12-05 19:32:43 +00:00
/*
* PostfixExpression.h
*
* Created on: Dec 5, 2012
* Author: attero
*/
#ifndef POSTFIXEXPRESSION_H_
#define POSTFIXEXPRESSION_H_
#include "ASTExpression.h"
#include "ASTStatement.h"
2012-12-10 10:45:09 +00:00
#include "../Context.h"
2012-12-05 19:32:43 +00:00
class PostfixExpression : public ASTExpression {
2012-12-05 19:32:43 +00:00
public:
std::string name;
bool native;
2012-12-10 10:45:09 +00:00
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();
2012-12-09 11:57:51 +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_ */