Succ operator
This commit is contained in:
parent
cdf2513e96
commit
6b46965435
2 changed files with 6 additions and 0 deletions
|
@ -208,3 +208,8 @@ class Between(private val expr1: Expression, private val expr2: Expression, priv
|
|||
|
||||
override fun toString(): String = "$expr1..$expr3..$expr2"
|
||||
}
|
||||
|
||||
class Successor(private val expr1: Expression, private val expr2: Expression) :
|
||||
CompoundTerm(Atom("succ"), listOf(expr1, expr2)), Satisfiable {
|
||||
override fun satisfy(subs: Substitutions): Answers = succ(expr1, expr2, subs)
|
||||
}
|
||||
|
|
Reference in a new issue