Bynk — Rust crate API docs
Generated rustdoc for the Bynk workspace crates — the compiler
internals behind the toolchain. Most users compile Bynk
through the bynkc / bynk CLIs rather than depending on
these crates directly. Back to the Developer Documentation.
-
bynk-syntaxBynk's syntax foundation: lexer, parser, AST, spans, the CompileError type, and the diagnostic-code registry — the lowest leaf of the compiler crate set.
-
bynk-renderBynk's shared diagnostic-rendering layer: ariadne human output and the short/json forms over bynk-syntax::CompileError. The presentation layer both CLI front-ends adopt so they render identically.
-
bynk-checkBynk's semantic-analysis layer: name resolution, type checking, the kernel-method and builtin registries, first-party sources, actors, and the captured index/hints tables — the layer between bynk-syntax and the emitter.
-
bynk-emitBynk's build orchestration and TypeScript emission: project discovery, the dependency graph, validation, and the emitter that lowers checked Bynk to TypeScript.
-
bynk-stripStrip-only TypeScript→JavaScript for Bynk's first-class JS artefact (the in-browser track). Erases TypeScript type syntax via oxc, preserving runtime semantics and all value imports; the emitter's strip-only invariant (ADR 0136) guarantees every input is erasable.
-
bynk-wasmThe Bynk compiler as a wasm module for the in-browser REPL/playground: a single `bynk_compile` entry that compiles an in-memory Bynk source to a runnable JavaScript module graph + diagnostics, with no filesystem and no tsc. Not published — it is the playground's build artefact.
-
bynk-ideBynk's IDE/LSP analysis surface: non-bailing single-file and project diagnostics over the captured bynk-check tables — the surface the language server consumes.
-
bynkcThe Bynk compiler — a typed function-then-context DSL that compiles to TypeScript.
-
bynkThe Bynk developer front-end — links the compiler pipeline in-process and orchestrates the Node toolchain (doctor / new / dev).
-
bynk-fmtFormatter for the Bynk DSL (used by bynkc-lsp).
-
bynk-grammarShared grammar definitions for the Bynk DSL.
-
bynk-lspbynkc-lsp — the Language Server for the Bynk DSL.