Aleph-w 3.0
A C++ Library for Data Structures and Algorithms
Loading...
Searching...
No Matches
ah-diagnostics.H File Reference

Plain-text diagnostic engine for compiler-style tooling. More...

#include <ostream>
#include <sstream>
#include <string>
#include <ah-source.H>
#include <tpl_dynArray.H>
Include dependency graph for ah-diagnostics.H:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  Aleph::Diagnostic_Label
 Span annotation attached to a diagnostic. More...
 
struct  Aleph::Diagnostic
 Fully accumulated diagnostic. More...
 
class  Aleph::Diagnostic_Builder
 Fluent builder used to enrich a just-created diagnostic. More...
 
class  Aleph::Diagnostic_Engine
 Diagnostic accumulator and renderer. More...
 

Namespaces

namespace  Aleph
 Main namespace for Aleph-w library functions.
 

Enumerations

enum class  Aleph::Diagnostic_Severity { Aleph::Note , Aleph::Warning , Aleph::Error , Aleph::Fatal }
 Severity level of a diagnostic message. More...
 
enum class  Aleph::Diagnostic_Label_Kind { Aleph::Primary , Aleph::Secondary }
 Kind of source label attached to a diagnostic. More...
 

Detailed Description

Plain-text diagnostic engine for compiler-style tooling.

The diagnostic engine stores errors, warnings, notes, and fatal messages together with source spans managed by Source_Manager. Diagnostics are accumulated first and rendered later, which makes the component suitable for lexers, parsers, semantic analyzers, and IDE-oriented tooling.

The MVP renderer is intentionally simple and deterministic. It produces stable plain-text output without ANSI color sequences.

Definition in file ah-diagnostics.H.