Skip to main content

Module build

Module build 

Source
Expand description

Parses adam-lang source into a live adam_lang::ParsedSheet, formatting any failure as a diagnostic instead of a bare error.

Structs§

BuildOutcome
The result of parsing and building a sheet from adam-lang source.

Functions§

build_sheet
Parses source as adam-lang, builds a Sheet and Labels, and propagates once so initial derived values are populated. file_name is used only to build diagnostic headers (e.g. --> begin/examples/toy_example.adm2:8:11), not to locate source itself. renderer controls how a diagnostic is formatted — pass Renderer::styled for a real terminal or Renderer::plain for a context that can’t display ANSI colors (e.g. a browser <pre> element).
op_lookup
Builds a cel_parser::OpLookup with the CEL standard and Euclid libraries installed, so every adam-lang source build_sheet parses has the same function set (min, max, clamp, etc.) available.
type_registry
Builds the matching scalar and Euclid cell-type environment.