summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Sencha-lang/AST/BasicExpression.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/Sencha-lang/AST/BasicExpression.cpp b/Sencha-lang/AST/BasicExpression.cpp
index b67ab5f..b778aae 100644
--- a/Sencha-lang/AST/BasicExpression.cpp
+++ b/Sencha-lang/AST/BasicExpression.cpp
@@ -106,6 +106,15 @@ SenchaObject BasicExpression::evaluate()
{
so = SenchaObject(left < right);
}
+ //TODO actually those should get through parser
+ else if(oper == "&&")
+ {
+ so = SenchaObject(left.is_true() && right.is_true());
+ }
+ else if(oper == "||")
+ {
+ so = SenchaObject(left.is_true() || right.is_true());
+ }
return so;
}