feat: Atom parsing
This commit is contained in:
parent
bd5c825ca2
commit
e749f8c6cb
8 changed files with 212 additions and 11 deletions
|
@ -13,4 +13,12 @@ open class Atom(val name: String) : Goal(), Head, Body, Resolvent {
|
|||
override fun toString(): String {
|
||||
return name
|
||||
}
|
||||
|
||||
override fun equals(other: Any?): Boolean {
|
||||
return (this === other) || (other is Atom && functor == other.functor)
|
||||
}
|
||||
|
||||
override fun hashCode(): Int {
|
||||
return javaClass.hashCode()
|
||||
}
|
||||
}
|
Reference in a new issue