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

34 lines
741 B
C++

/*
* VariableExpression.h
*
* Created on: Dec 17, 2012
* Author: att
*/
#ifndef VARIABLEEXPRESSION_H_
#define VARIABLEEXPRESSION_H_
#include <iostream>
#include <string>
#include "../ContextManager.h"
#include "ASTExpression.h"
/**
* VariableExpression is actually a wrapper around name and appropriate context
* variable can evaluate itself in right time. It's an abstraction of variable.
*/
class VariableExpression: public ASTExpression {
public:
VariableExpression();
VariableExpression(std::string name, ContextManager * context);
ContextManager * context;
std::string name;
void execute();
void execute_quietly();
SenchaObject evaluate();
virtual ~VariableExpression();
};
#endif /* VARIABLEEXPRESSION_H_ */