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

33 lines
744 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"
#include <iostream>
2012-12-05 19:32:43 +00:00
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();
2012-12-05 19:32:43 +00:00
virtual ~ConstantExpression();
virtual SenchaObject evaluate();
virtual void execute() ;
2012-12-09 11:57:51 +00:00
virtual void execute_quietly() ;
2012-12-05 19:32:43 +00:00
};
#endif /* CONSTANTEXPRESSION_H_ */