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

35 lines
739 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_manager;
bool native;
std::vector<ASTExpression *> arguments;
void add_argument(ASTExpression * expression);
virtual SenchaObject evaluate();
virtual SenchaObject execute();
PostfixExpression( std::string name, ContextManager * context);
virtual ~PostfixExpression();
};
#endif /* POSTFIXEXPRESSION_H_ */