View Source cure_error_reporter (cure v0.1.0)
Cure Error Reporter
Enhanced error reporting module with precise location tracking and user-friendly diagnostic messages. This module provides rich error formatting for parser, lexer, and semantic analysis errors.
Features
- Rich Location Info: Line, column, and file context
 - Snippet Display: Show source code around errors
 - Suggestions: Provide helpful hints for common mistakes
 - Color Formatting: Terminal color support for better readability
 - Multi-error Support: Report multiple errors in batch
 
Summary
Functions
-spec create_diagnostic(error | warning | info, #location{line :: term(), column :: term(), file :: term()}, binary(), [binary()]) -> #diagnostic{severity :: error | warning | info, location :: #location{line :: term(), column :: term(), file :: term()}, message :: binary(), snippet :: binary() | undefined, suggestions :: [binary()]}.