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

commonMain.it.unibo.tuprolog.dsl.solve.DSL.kt Maven / Gradle / Ivy

@file:JvmName("DSL")

package it.unibo.tuprolog.dsl.solve

import it.unibo.tuprolog.solve.Solver
import it.unibo.tuprolog.solve.SolverFactory
import it.unibo.tuprolog.unify.Unificator
import kotlin.js.JsName
import kotlin.jvm.JvmName

@JsName("logicProgramming")
fun  logicProgramming(
    solverFactory: SolverFactory,
    unificator: Unificator = solverFactory.defaultUnificator,
    function: LogicProgrammingScopeWithResolution.() -> R
): R {
    return LogicProgrammingScopeWithResolution.of(solverFactory, unificator).function()
}

@JsName("lp")
fun  lp(
    solverFactory: SolverFactory,
    unificator: Unificator = solverFactory.defaultUnificator,
    function: LogicProgrammingScopeWithResolution.() -> R
): R = logicProgramming(solverFactory, unificator, function)

@JsName("prolog")
fun  prolog(
    unificator: Unificator = Unificator.default,
    function: LogicProgrammingScopeWithResolution.() -> R
): R = logicProgramming(Solver.prolog, unificator, function)




© 2015 - 2025 Weber Informatics LLC | Privacy Policy