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

31 lines
707 B
C
Raw Normal View History

2012-12-05 19:32:43 +00:00
/*
* ConstantExpression.h
*
* Created on: Dec 5, 2012
* Author: attero
*/
#ifndef CONSTANTEXPRESSION_H_
#define CONSTANTEXPRESSION_H_
#include "ASTExpression.h"
class ConstantExpression : public ASTExpression {
public:
ConstantExpression(ASTNode * parent);
2012-12-06 17:41:16 +00:00
ConstantExpression(ASTNode * parent, int number) ;
ConstantExpression(ASTNode * parent, double number) ;
ConstantExpression(ASTNode * parent, std::string text);
2012-12-08 19:59:05 +00:00
ConstantExpression(ASTNode * parent, SenchaObject value, std::string name);
SenchaObject value;
2012-12-06 17:41:16 +00:00
std::string debug();
virtual void execute() { //Do nothing
};
2012-12-05 19:32:43 +00:00
virtual ~ConstantExpression();
virtual SenchaObject evaluate();
2012-12-05 19:32:43 +00:00
};
#endif /* CONSTANTEXPRESSION_H_ */