//! Graphcal Syntax: lexer, parser, and AST definitions.
use Arc;
/// Build a [`miette::NamedSource`] from `(name, source)`.
///
/// The source is shared through `Arc` so diagnostics built from the same file
/// do not re-copy it. Prefer this helper over `NamedSource::new(name, Arc::new(source))`
/// at call sites — it centralizes the wrapping convention.