All Downloads are FREE. Search and download functionalities are using the official Maven repository.

commonMain.it.unibo.tuprolog.datalog.ClauseVisitor.kt Maven / Gradle / Ivy

There is a newer version: 1.0.4
Show newest version
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