summaryrefslogtreecommitdiffstats
path: root/Sencha-lang/AST/ConstantExpression.h
diff options
context:
space:
mode:
authorJustyna Ilczuk <justyna.ilczuk@gmail.com>2012-12-31 17:10:37 +0100
committerJustyna Ilczuk <justyna.ilczuk@gmail.com>2012-12-31 17:10:37 +0100
commit6296524bec2e2254f816b944ecc8cf28686f1fa8 (patch)
tree69b4f25c77502cd4fbcd14c28a9ad04aac28acd3 /Sencha-lang/AST/ConstantExpression.h
parente01bc95615b24e8e122942f3701b6b4197ec16b7 (diff)
downloadsencha-lang-6296524bec2e2254f816b944ecc8cf28686f1fa8.tar.gz
sencha-lang-6296524bec2e2254f816b944ecc8cf28686f1fa8.tar.bz2
sencha-lang-6296524bec2e2254f816b944ecc8cf28686f1fa8.tar.xz
sencha-lang-6296524bec2e2254f816b944ecc8cf28686f1fa8.zip
Functions work if given right arguments ^^.
Diffstat (limited to 'Sencha-lang/AST/ConstantExpression.h')
-rw-r--r--Sencha-lang/AST/ConstantExpression.h8
1 files changed, 3 insertions, 5 deletions
diff --git a/Sencha-lang/AST/ConstantExpression.h b/Sencha-lang/AST/ConstantExpression.h
index 72cf8d2..e7f12f9 100644
--- a/Sencha-lang/AST/ConstantExpression.h
+++ b/Sencha-lang/AST/ConstantExpression.h
@@ -9,14 +9,14 @@
#define CONSTANTEXPRESSION_H_
#include "ASTExpression.h"
#include <iostream>
-
+#include "../Elements/SenchaFunction.h"
/**
* ConstantExpression class is used to store complex expression, which are actually
* SenchaObjects. Constant Expressions are made in parser when it encounter some of primitives
* like string literal or numbers, they also can be made on already made SenchaObject.
* ConstantExpression is a part of AST, so it must have parent. It's a node in which it is build.
- * It implements four virtual functions: debug, evaluate, execute_quietly.
+ * It implements four virtual functions: debug, evaluate.
* It stores the value of expression.
*/
class ConstantExpression : public ASTExpression {
@@ -66,10 +66,8 @@ public:
virtual SenchaObject evaluate();
/**Prints representation of value */
- virtual void execute() ;
+ virtual SenchaObject execute() ;
- /**Does nothing */
- virtual void execute_quietly() ;
};
#endif /* CONSTANTEXPRESSION_H_ */