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

commonMain.it.unibo.tuprolog.solve.classic.stdlib.DefaultBuiltins.kt Maven / Gradle / Ivy

Go to download

Stable, state-machine-based implementation of Prolog's SLDNF resolution principle

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