Crate joule_common

Crate joule_common 

Source
Expand description

Common types and utilities for the Joule compiler

This crate provides foundational data structures used throughout the compiler:

  • Span: Source location tracking
  • Symbol: String interning
  • Diagnostic: Error and warning messages
  • SourceMap: Source file tracking

Re-exports§

pub use diagnostic::Diagnostic;
pub use diagnostic::Label;
pub use diagnostic::LabelStyle;
pub use diagnostic::Severity;
pub use source_map::FileId;
pub use source_map::FileInfo;
pub use source_map::SourceMap;
pub use span::Span;
pub use span::Spanned;
pub use symbol::Interner;
pub use symbol::Symbol;

Modules§

diagnostic
Diagnostic messages (errors, warnings, notes)
source_map
Source file mapping and tracking
span
Source location tracking
symbol
String interning