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

Go to download

Kotlin DSL for logic programming, enriched with unification, clause storage, and resolution facilities

The newest version!
@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: LogicProgrammingScope.() -> R,
): R = LogicProgrammingScope.of(solverFactory, unificator).function()

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

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy