Documentation
¶
Overview ¶
Package explain derives English contract instructions from checked syntax. It does not execute predicates, simplify arbitrary functions, or claim that native schema keywords can enforce the additional rules.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Definition ¶
type Document ¶
type Document struct {
// contains filtered or unexported fields
}
func Generate ¶
Generate describes every declaration, clause and function body, including recursive algorithms. References are not expanded, so recursive contracts produce finite documents. Only compiler-checked source is accepted.
func GeneratePayload ¶
func GeneratePayload(target *language.PayloadType) (Document, error)
GeneratePayload also includes anonymous constraints authored on a selected closed target outside the module, such as Box (Int where it > 0).
func (Document) Definitions ¶
func (d Document) Definitions() []Definition
func (Document) Instructions ¶
func (d Document) Instructions() []Instruction
func (Document) Limits ¶
func (d Document) Limits() SchemaLimits
func (Document) Markdown ¶
Markdown is deterministic and self-contained; code fences grow to contain arbitrary author text safely. It includes all algorithms, not just summaries.