Skip to main content

Crate bynk_syntax

Crate bynk_syntax 

Source
Expand description

Bynk’s syntax foundation — the lowest leaf of the compiler crate set.

This crate holds the modules every other layer depends on and none depend up from: the lexer, the parser and its AST, source spans, the keywords table, the structured CompileError type, and the diagnostics code registry (the single source of truth for bynk.* codes). Diagnostics, positions, and codes therefore cross every crate without an upward edge.

Extracted from bynkc as slice 1 of the crate-decomposition track (ADRs 0099 layering, 0102 foundation boundary). Behaviour is unchanged from when these modules lived in bynkc; bynkc now re-exports them so its public API is preserved.

Re-exports§

pub use error::CompileError;
pub use error::Severity;
pub use error::partition_by_severity;

Modules§

ast
Abstract syntax tree types for Bynk v0 (spec §9.2).
diagnostics
Central registry of diagnostic codes.
error
Compiler diagnostics.
keywords
Registry of reserved keywords.
lexer
Lexer for Bynk v0.
parser
Hand-written recursive-descent parser for Bynk v0.
span
Source position spans.