commonMain.it.unibo.tuprolog.solve.classic.stdlib.DefaultBuiltins.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of solve-classic-jvm Show documentation
Show all versions of solve-classic-jvm Show documentation
Stable, state-machine-based implementation of Prolog's SLDNF resolution principle
package it.unibo.tuprolog.solve.classic.stdlib
import it.unibo.tuprolog.solve.classic.stdlib.primitive.Throw
import it.unibo.tuprolog.solve.classic.stdlib.rule.Call
import it.unibo.tuprolog.solve.classic.stdlib.rule.Catch
import it.unibo.tuprolog.solve.classic.stdlib.rule.Comma
import it.unibo.tuprolog.solve.classic.stdlib.rule.Cut
import it.unibo.tuprolog.solve.classic.stdlib.rule.NegationAsFailure
import it.unibo.tuprolog.solve.library.impl.ExtensionLibrary
import it.unibo.tuprolog.solve.primitive.PrimitiveWrapper
import it.unibo.tuprolog.solve.rule.RuleWrapper
import it.unibo.tuprolog.solve.stdlib.CommonBuiltins
object DefaultBuiltins : ExtensionLibrary(CommonBuiltins) {
override val additionalPrimitives: Iterable>
get() =
listOf(
Throw,
)
override val additionalRules: Iterable>
get() =
listOf(
Catch,
Call,
Comma,
Cut,
NegationAsFailure.Fail,
NegationAsFailure.Success,
)
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy