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

commonMain.it.unibo.tuprolog.solve.SolutionFormatter.kt Maven / Gradle / Ivy

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