compiler_base_error/
lib.rs

1//! Compiler-Base-Error
2//!
3//! The idea with `Compiler-Base-Error` is to make a reusable library,
4//! by separating out error thorwing and diagnostic diaplaying or other error handling procedures.
5//!
6//! - Compiler-Base-Error provides `DiagnosticHandler` to diaplay diagnostic.
7//! For more information about `DiagnosticHandler`, see doc in 'compiler_base/error/diagnostic/diagnostic_handler.rs'.
8//!
9//! - TODO(zongz): Compiler-Base-Error provides `ErrorRecover` to recover from errors.
10
11mod diagnostic;
12mod emitter;
13#[cfg(test)]
14mod tests;
15
16pub mod errors;
17pub mod unit_type;
18
19pub use diagnostic::{
20    components, diagnostic_handler, style::DiagnosticStyle, Component, Diagnostic, StyledBuffer,
21    StyledString,
22};
23
24pub use emitter::{emit_diagnostic_to_uncolored_text, Destination, Emitter, EmitterWriter};
25pub use termcolor::{Ansi, Buffer, BufferWriter, ColorChoice, ColorSpec, StandardStream};