feat: Floating point arithmetic

This commit is contained in:
Tibo De Peuter 2025-04-15 18:23:04 +02:00
parent f9950a3fd3
commit 4a6850527f
Signed by: tdpeuter
GPG key ID: 38297DE43F75FFE2
13 changed files with 527 additions and 55 deletions

View file

@ -0,0 +1,10 @@
package prolog.ast.arithmetic
interface Number: Expression {
val value: kotlin.Number
fun plus(other: Number): Number
fun minus(other: Number): Number
fun times(other: Number): Number
fun div(other: Number): Number
}