Loading the code workspace…
Implement a comprehensive semantic error reporting system.
Create an error reporting infrastructure:
SemanticError struct with severity, location, messageImplement error detectors for:
Implement warning detection:
Create formatted output:
Rust's error messages with source spans, notes, and suggestions set the industry standard and directly drove adoption; Elm's friendly errors inspired them. The span-tracking and message formatting you build here is that feature in miniature — GCC rewrote its diagnostics engine to catch up with Clang for exactly this reason.