removed '**' power-operator. Use floats.pow() instead.

This commit is contained in:
Irmen de Jong
2022-03-27 12:12:57 +02:00
parent 12712ef812
commit ed30108961
19 changed files with 82 additions and 265 deletions
@@ -231,7 +231,6 @@ internal class ExpressionGen(val codeGen: CodeGen) {
">>" -> {
code += VmCodeInstruction(Instruction(Opcode.LSR, vmDt, reg1=resultRegister, reg2=leftResultReg, reg3=rightResultReg))
}
"**" -> throw AssemblyError("** operator requires floating point ${binExpr.position}")
// TODO the other operators: "==", "!=", "<", ">", "<=", ">="
else -> TODO("operator ${binExpr.operator}")
}