commonMain.it.unibo.tuprolog.solve.SolutionFormatter.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of solve-jvm Show documentation
Show all versions of solve-jvm Show documentation
Resolution-agnostic API for logic solvers
package it.unibo.tuprolog.solve
import it.unibo.tuprolog.core.Formatter
import it.unibo.tuprolog.core.TermFormatter
import it.unibo.tuprolog.core.operators.OperatorSet
import it.unibo.tuprolog.solve.impl.SolutionFormatterImpl
import kotlin.js.JsName
import kotlin.jvm.JvmOverloads
import kotlin.jvm.JvmStatic
interface SolutionFormatter : Formatter {
companion object {
@JsName("of")
@JvmStatic
@JvmOverloads
fun of(termFormatter: TermFormatter = TermFormatter.prettyExpressions()): SolutionFormatter =
SolutionFormatterImpl(termFormatter)
@JsName("withOperators")
@JvmStatic
fun withOperators(operators: OperatorSet): SolutionFormatter =
of(TermFormatter.prettyExpressions(true, operators))
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy