Structs§
- Date
Time Value - A datetime value that preserves timezone information
- Expression
- An expression that can be evaluated, with source location
- Fact
Path - A resolved path to a fact, with document traversal segments
- Fact
Reference - Reference to a fact (resolved from Reference during planning)
- Lemma
Doc - A Lemma document containing facts and rules
- Lemma
Fact - Lemma
Rule - A rule with a single expression and optional unless clauses
- Lemma
Type - A fully resolved type used during evaluation
- Literal
Value - A literal value with its type
- Path
Segment - A single segment in a path traversal
- Reference
- Unresolved reference from parser
- Rule
Path - A resolved path to a rule, with document traversal segments
- Rule
Reference - Reference to a rule
- Time
Value - A time value
- Timezone
Value - A timezone value
- Unit
- A unit for Number and Ratio types
- Unless
Clause - An unless clause that provides an alternative result
- Veto
Expression - A veto expression that prohibits any valid verdict from the rule
Enums§
- Arithmetic
Computation - Arithmetic computations
- Boolean
Value - A type for type declarations Boolean value with original input preserved
- Comparison
Computation - Comparison computations
- Conversion
Target - The target unit for unit conversion expressions
- Duration
Unit - Expression
Kind - The kind/type of expression
- Fact
Value - Logical
Computation - Logical computations
- Mathematical
Computation - Mathematical computations
- Negation
Type - Types of logical negation
- TypeDef
- User-defined type as it appears in the source (AST)
- Type
Specification - Type specifications that define the foundational types available in Lemma, including their default values and constraints.
- Value
- The actual value data (without type information)
Functions§
- standard_
boolean - Get the standard boolean type
- standard_
date - Get the standard date type
- standard_
duration - Get the standard duration type
- standard_
number - Get the standard number type (dimensionless, no units)
- standard_
ratio - Get the standard ratio type
- standard_
scale - Get the standard scale type (can have units)
- standard_
text - Get the standard text type
- standard_
time - Get the standard time type