joule_common/
lib.rs

1//! Common types and utilities for the Joule compiler
2//!
3//! This crate provides foundational data structures used throughout the compiler:
4//! - `Span`: Source location tracking
5//! - `Symbol`: String interning
6//! - `Diagnostic`: Error and warning messages
7//! - `SourceMap`: Source file tracking
8
9pub mod diagnostic;
10pub mod source_map;
11pub mod span;
12pub mod symbol;
13
14pub use diagnostic::{Diagnostic, Label, LabelStyle, Severity};
15pub use source_map::{FileId, FileInfo, SourceMap};
16pub use span::{Span, Spanned};
17pub use symbol::{Interner, Symbol};