summaryrefslogtreecommitdiffstats
path: root/Sencha-lang/AST/ConstantExpression.h
blob: 5ba474c8248be0532e352a6f5853e65a3e529cc4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
/*
 * 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);
	ConstantExpression(ASTNode * parent, int number) ;
	ConstantExpression(ASTNode * parent, double number) ;
	ConstantExpression(ASTNode * parent, std::string text);

	SenchaObject value;

	std::string debug();

	virtual void execute() { //Do nothing
		};

	virtual ~ConstantExpression();
	virtual SenchaObject evaluate();
};

#endif /* CONSTANTEXPRESSION_H_ */