Specification
The language, the syntax tree, the catalog, the records, the stages, the report, the journal, errors and configuration.
Command catalog nurt-catalog/1
The command catalog is the single source of command signatures. The binder, the built-in help, the model description, the reference documentation, the tool definitions and the conformance suite all read it. It consist...
Configuration nurt-config/1
Danaco Nurt reads its configuration from TOML files, environment variables and run-time settings at seven levels of precedence. The machine-readable form of the format is the JSON Schema spec/schemas/nurt-config-1.sch...
Effect report and request envelope
All three are JSON documents in UTF-8; CBOR is an equivalent encoding. Each carries a version "nurt": "MAJOR.MINOR", currently "1.0". Within major version 1 the formats only gain optional fields and new values of the...
Error codes
Every error of the language has a stable code written in upper case with the prefix E, a message and, where known, the stage, the position in the program and ready replacements of the program text. Errors of the stage...
Glossary
Terms with a fixed meaning in the specification and the documentation. Each term is defined here only; other documents refer to this page.
Grammar
The grammar of program text in EBNF. The parser of the crate nurt-syntax is the reference; the surface tree of every production is in syntax-tree.md. The notation: { x } is zero or more, [ x ] is optional, ( a | b ) g...
Job supervisor protocol
A run that continues in the background after the command line exits is supervised by a process that outlives the command line. The command line and the supervisor exchange files in the state directory; there is no soc...
Journal and file system contract
This document specifies the contract of the operation journal (module nurtcontracts::journal) and of the file system interface (module nurtcontracts::fs). The Rust documentation of both modules is normative for signat...
Key paths
A key path addresses values inside a structured document: JSON, JSONC, YAML, TOML, XML, INI, CSV, TSV, Java properties, environment files and property lists. It is the value of the language type key. A text literal in...
Shared services
Command crates depend only on nurt-contracts. When a command of one group needs a capability implemented by another group, it calls a service trait from nurtcontracts::services. The engine registers the implementation...
Stage interface
This document specifies how a command of the Nurt language is implemented and executed. The Rust form of the contract is the module stage of the crate nurt-contracts; clock and host facts are in the module env. An imp...
Syntax trees: nurt-ast/1 and nurt-bound/1
Nurt executes and records a syntax tree, never program text. Program text in any syntax variant is corrected and parsed into a surface tree (nurt-ast/1). Binding the surface tree with the command catalog produces a bo...
Values and records
Programs exchange typed values and records. This specification defines the value types, their JSON form nurt-value/1 and every record kind with its fields. The schema nurt-value-1.schema.json is generated from the typ...