Expand description
Reference compiler frontend for the Stack diagram language.
The public pipeline deliberately stops at normalized, renderer-independent diagram IR. Theme resolution, layout, and rendering belong to downstream crates and applications.
Modules§
- ast
- Source-oriented abstract syntax tree.
- diagnostic
- Structured diagnostics emitted by compiler stages.
- ir
- Normalized renderer-independent diagram representation.
- language_
intelligence - Stateless, protocol-neutral language intelligence for one source snapshot.
- lossless
- Lossless lexical source model for formatters and editor tooling.
- source_
map - Rust source-map sidecar for post-compiler diagnostics.
Structs§
- Compile
Output - Output of the complete compiler frontend.
- Lossless
Parse Output - Output of syntactic parsing into the lossless source model.
- Parse
Output - Output of lexical and syntax parsing.
- Source
Mapped Compile Output - Output of compilation with the Rust-only source-map sidecar.
Functions§
- compile
- Parses, validates, and normalizes UTF-8 Stack source.
- compile_
bytes - Decodes, parses, validates, and normalizes Stack source bytes.
- compile_
bytes_ with_ source_ map - Decodes and compiles source bytes with an engine-facing source map.
- compile_
with_ source_ map - Parses, validates, and normalizes source with an engine-facing source map.
- parse
- Parses UTF-8 Stack source into a source-oriented AST.
- parse_
bytes - Decodes and parses Stack source bytes into a source-oriented AST.
- parse_
lossless - Parses UTF-8 Stack source into exact authored tokens and trivia.
- parse_
lossless_ bytes - Decodes and parses Stack source bytes into exact authored tokens and trivia.
- validate
- Validates a parsed document and produces normalized IR when it is valid.