pub fn analyze(source: &str) -> AnalysisResultExpand description
Analyzes a .nautilus schema source string end-to-end.
Runs the full pipeline (lex -> parse -> validate) and collects all
diagnostics, not just the first one. The returned AnalysisResult
contains the best-effort AST, the validated IR (when error-free), and
the complete list of diagnostics.