Releases: UnitTestBot/klogic
Releases · UnitTestBot/klogic
0.2.1
0.2.0
Introduced the RelationalContext
- a global context for running relations that holds listeners for different events (such as unification, disequality, and stream manipulations), allows to stop stream calculations, and is responsible for creating fresh variables.
0.1.5
0.1.4
0.1.3
0.1.2
- Introduced
success
andfailure
Goal
s - Introduced a logic type for parametrized Pair
- Introduced
run
overloading that does not require to create of a fresh variable for the result - Introduced
condo2
- it takes 2Goal
s, invokes the firstGoal
, and returns a stream with its result if it was successful, and returns a stream with a result of the secondGoal
otherwise - Introduced
debugVar
- it reifies walked term using the passed reifier and returns aGoal
from the passed callback
0.1.1
0.1.0
Supported operations (part of klogic-core
):
- Unification
- Disequality
Supported terms:
Var
- a variable bound to the specified logic type (part ofklogic-core
)Symbol
- a simple logic wrapper for string constant (custom logic term, part ofklogic-utils
)LogicList
- a recursive list storing terms of the specified type or variables of the same type (terms and variables are allowed to be stored at the same time) - a custom logic term, part ofklogic-utils
LogicBool
- a logic term for bool type (custom logic term, part ofklogic-utils
)PeanoLogicNumber
- the logic implementation of Peano numbers (custom logic term, part ofklogic-utils
)OlegLogicNumber
- logic numbers represented by a list of binary digits, introduced by Oleg Kiselyov (custom logic term, part ofklogic-utils
)