commonMain.it.unibo.tuprolog.datalog.ClauseVisitor.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of datalog-jvm Show documentation
Show all versions of datalog-jvm Show documentation
Datalog-compliant utilities for knowledge representation
package it.unibo.tuprolog.datalog
import it.unibo.tuprolog.core.Clause
import it.unibo.tuprolog.core.Struct
import it.unibo.tuprolog.core.TermVisitor
interface ClauseVisitor : TermVisitor {
fun visitHead(head: Struct): T = visitLiteral(head)
fun visitLiteral(literal: Struct): T
fun visitNonNegatedLiteral(literal: Struct): T = visitLiteral(literal)
fun visitNegatedLiteral(literal: Struct): T = visitLiteral(literal)
override fun visitClause(term: Clause): T
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy