summaryrefslogtreecommitdiffstats
path: root/Sencha-lang/AST/BasicExpression.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Sencha-lang/AST/BasicExpression.cpp')
-rw-r--r--Sencha-lang/AST/BasicExpression.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/Sencha-lang/AST/BasicExpression.cpp b/Sencha-lang/AST/BasicExpression.cpp
index 5065de3..b370619 100644
--- a/Sencha-lang/AST/BasicExpression.cpp
+++ b/Sencha-lang/AST/BasicExpression.cpp
@@ -24,7 +24,7 @@ void BasicExpression::set_right_operand(ASTNode * right)
this->right = static_cast<ASTExpression *>(children[1]);
}
-virtual int BasicExpression::evaluate()
+virtual SenchaObject BasicExpression::evaluate()
{
if(oper == "+")
{
@@ -34,7 +34,8 @@ virtual int BasicExpression::evaluate()
return 0;
}
-BasicExpression::BasicExpression() {
+BasicExpression::BasicExpression(ASTNode * parent) {
+ this->parent = parent;
// initialize pointers
this->add_children(0);
this->add_children(0);