VariablesProvider
A Scope extended with 26 pre-declared Var properties, one per uppercase Latin letter (A to Z), for quickly sketching terms in Kotlin code without spelling out varOf("X") for every commonly-named variable. Being also a Kotlin property delegate provider (via getValue), a VariablesProvider lets a Kotlin val declaration mint (or fetch) a same-named Scope variable directly:
val provider = VariablesProvider.of()
val x by provider // equivalent to `val x = provider.varOf("X")`Properties
Shorthand for the empty logic block, i.e. EmptyBlock.
Shorthand for the empty logic list, i.e. EmptyList.
Shorthand for Truth.FAIL.
The underlying Scope this VariablesProvider delegates variable creation/caching to.
Functions
Creates a fresh, unrelated anonymous Var. See Var.anonymous.
Creates a copy of this VariablesProvider, backed by scope (defaulting to this one's own scope).
Creates a Directive with the given body. See Directive.of.
Creates an Indicator with the given name and arity. See Indicator.of.
Creates an Integer out of value. See Integer.of.
Parses value into an Integer. See Integer.of.
Parses value, expressed in the given radix, into an Integer. See Integer.of.
Creates an Integer out of value. See Numeric.of.
Creates a Real out of value. See Numeric.of.
Creates a Numeric out of value. See Numeric.of.
Parses value into a Numeric, preferring Integer and falling back to Real. See Numeric.of.
Creates a Substitution out of the given Var-Term.
Creates a Substitution out of the given Var.name-Term.
Creates a Substitution.Unifier out of the given Var-Term.
Creates a Substitution.Unifier out of the given Var.name-Term.