Website Summary Files Commits Branches @commit @diff @stats
path: root / JSImpl / src / ASTInterpreter.cpp
diff options
context:
space:
mode:
1 files changed, 9 insertions, 0 deletions
-rw-r--r--JSImpl/src/ASTInterpreter.cpp9
diff --git a/JSImpl/src/ASTInterpreter.cpp b/JSImpl/src/ASTInterpreter.cpp
index f7d1dc2..25f5c02 100644
--- a/JSImpl/src/ASTInterpreter.cpp
+++ b/JSImpl/src/ASTInterpreter.cpp
@@ -185,6 +185,15 @@ void ASTInterpreter::Visit(BinaryExpression* e) {
case TokenType::Less:
m_Evaluation.push_back(left < right);
break;
+ case TokenType::LessEqual:
+ m_Evaluation.push_back(left <= right);
+ break;
+ case TokenType::Greater:
+ m_Evaluation.push_back(left > right);
+ break;
+ case TokenType::GreaterEqual:
+ m_Evaluation.push_back(left >= right);
+ break;
case TokenType::Comma:
m_Evaluation.push_back(right);
break;