Skip to main content

Crate stack_compiler

Crate stack_compiler 

Source
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§

CompileOutput
Output of the complete compiler frontend.
LosslessParseOutput
Output of syntactic parsing into the lossless source model.
ParseOutput
Output of lexical and syntax parsing.
SourceMappedCompileOutput
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.