moulo
Some checks failed
Build / build (push) Successful in 9m45s
Test / build (push) Failing after 15m53s

This commit is contained in:
Chuck Smith
2024-03-22 16:49:33 -04:00
parent 6282075e66
commit cbb430b47d
10 changed files with 29 additions and 3 deletions

View File

@@ -336,6 +336,8 @@ func evalIntegerInfixExpression(operator string, left, right object.Object) obje
return &object.Integer{Value: leftVal * rightVal}
case "/":
return &object.Integer{Value: leftVal / rightVal}
case "%":
return &object.Integer{Value: leftVal % rightVal}
case "<":
return nativeBoolToBooleanObject(leftVal < rightVal)
case "<=":