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

34 lines
750 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>
#include "../Context.h"
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);
ConstantExpression(ASTNode * parent, SenchaObject value);
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_ */