Concepts and model

DIP evaluates DIPL declarations into a structured environment. The native model separates source registration, evaluation, discovery, and persistence so that the same evaluated values can be inspected or converted without parsing the original files again.

Core objects

Parser

snt::dip::DIP receives DIPL sources, units, schemas, overrides, named sources, and DIPfile projects. It evaluates them when parse() is called.

Environment

snt::dip::Environment owns the evaluated value tree. It provides direct access to known paths, discovery through an inspector, persistence, and export operations.

Cursor

env["path.to.value"] addresses a known node. A cursor exposes its value, units, shape, metadata, provenance, and child entries without copying the complete environment.

Inspector

snt::dip::Inspector discovers nodes by path query and tags, and provides bounded descriptions, previews, table inspection, and dependency views.

Schemas and overrides

Schemas describe reusable groups and values. Overrides replace declared inputs before dependent values are evaluated. Both are registered before parse() and retain their source provenance.

Projects and snapshots

A DIPfile project groups sources, units, schemas, overrides, and code into one reusable input. DIPH5 stores an evaluated environment, including its recoverable source bytes, for later inspection or reuse.

Evaluation flow

The usual sequence is:

  1. Register sources and optional schemas, units, and overrides.

  2. Evaluate with parse().

  3. Read known paths through an environment cursor or discover nodes through an inspector.

  4. Save, export, compare, or report the evaluated result.

The model is declarative: expressions and dependencies are evaluated in DIPL, not reimplemented by each binding. Bindings expose different subsets of this model; their interface pages state the available operations and any binding-specific ownership or lifetime rules.

Continue with