blob: 301652961fa41d88ccd421a481696e2e54b0b405 (
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
31
32
33
|
/*
* ConstantExpression.h
*
* Created on: Dec 5, 2012
* Author: attero
*/
#ifndef CONSTANTEXPRESSION_H_
#define CONSTANTEXPRESSION_H_
#include "ASTExpression.h"
#include <iostream>
#include "../Context.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);
ConstantExpression(ASTNode * parent, SenchaObject value);
SenchaObject value;
std::string debug();
virtual ~ConstantExpression();
virtual SenchaObject evaluate();
virtual void execute() ;
virtual void execute_quietly() ;
};
#endif /* CONSTANTEXPRESSION_H_ */
|