summaryrefslogtreecommitdiffstats
path: root/Sencha-lang/AST/ConstantExpression.h
diff options
context:
space:
mode:
authorJustyna Att Ilczuk <justyna.ilczuk@gmail.com>2012-12-06 18:41:16 +0100
committerJustyna Att Ilczuk <justyna.ilczuk@gmail.com>2012-12-06 18:41:16 +0100
commit02d96d9891472de552b6518ec30a880f3eff69ce (patch)
tree09126dace54425b7be8e8d9b8033e8f89603d192 /Sencha-lang/AST/ConstantExpression.h
parentd996b89678761d17c498d3dbf2e76b774780f1cf (diff)
downloadsencha-lang-02d96d9891472de552b6518ec30a880f3eff69ce.tar.gz
sencha-lang-02d96d9891472de552b6518ec30a880f3eff69ce.tar.bz2
sencha-lang-02d96d9891472de552b6518ec30a880f3eff69ce.tar.xz
sencha-lang-02d96d9891472de552b6518ec30a880f3eff69ce.zip
It's alive!
Diffstat (limited to 'Sencha-lang/AST/ConstantExpression.h')
-rw-r--r--Sencha-lang/AST/ConstantExpression.h11
1 files changed, 7 insertions, 4 deletions
diff --git a/Sencha-lang/AST/ConstantExpression.h b/Sencha-lang/AST/ConstantExpression.h
index cfbf429..5ba474c 100644
--- a/Sencha-lang/AST/ConstantExpression.h
+++ b/Sencha-lang/AST/ConstantExpression.h
@@ -12,13 +12,16 @@
class ConstantExpression : public ASTExpression {
public:
ConstantExpression(ASTNode * parent);
- ConstantExpression(ASTNode * parent, int number) { this->parent = parent; value = SenchaObject(number);};
- ConstantExpression(ASTNode * parent, double number) {this->parent = parent; value = SenchaObject(number); };
- ConstantExpression(std::string text){ this->parent = parent; value = SenchaObject(text);};
+ ConstantExpression(ASTNode * parent, int number) ;
+ ConstantExpression(ASTNode * parent, double number) ;
+ ConstantExpression(ASTNode * parent, std::string text);
SenchaObject value;
- std::string debug() { return "Constant expression:\n" + value.repr() + "\n"; }
+ std::string debug();
+
+ virtual void execute() { //Do nothing
+ };
virtual ~ConstantExpression();
virtual SenchaObject evaluate();