gruel_util/lib.rs
1//! Shared utilities for the Gruel compiler:
2//!
3//! - [`span`] — source location tracking
4//! - [`error`] — compile-error / diagnostic types
5//! - [`ice`] — internal-compiler-error context capture
6//! - [`ops`] — `BinOp` / `UnaryOp` shared by RIR, AIR, and CFG
7//!
8//! The most commonly used items are re-exported at the crate root so that
9//! `use gruel_util::{Span, CompileError, BinOp};` works without reaching
10//! into module paths.
11
12pub mod error;
13pub mod ice;
14pub mod ops;
15pub mod place;
16pub mod span;
17
18pub use error::*;
19pub use ops::{BinOp, UnaryOp};
20pub use place::PlaceBase;
21pub use span::{FileId, Span};