feat: Floating point arithmetic
This commit is contained in:
parent
f9950a3fd3
commit
4a6850527f
13 changed files with 527 additions and 55 deletions
10
src/prolog/ast/arithmetic/Number.kt
Normal file
10
src/prolog/ast/arithmetic/Number.kt
Normal 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
|
||||
}
|
Reference in a new issue