Expand description
Shared utilities for the Gruel compiler:
span— source location trackingerror— compile-error / diagnostic types- [
ice] — internal-compiler-error context capture ops—BinOp/UnaryOpshared by RIR, AIR, and CFG
The most commonly used items are re-exported at the crate root so that
use gruel_util::{Span, CompileError, BinOp}; works without reaching
into module paths.
Re-exports§
pub use ops::BinOp;pub use ops::UnaryOp;pub use place::PlaceBase;pub use span::FileId;pub use span::Span;pub use error::*;
Modules§
- error
- Error types and compiler diagnostics.
- ice
- Internal Compiler Error (ICE) handling.
- ops
- Shared binary and unary operator enums used across all IRs.
- place
- Place-base shared between AIR and CFG.
- span
- Source span and location types.
Macros§
- ice
- Create an
IceContextwith automatic version and backtrace capture. - ice_
error - Create a
CompileErrorfrom an ICE context.