Skip to main content

Crate gruel_util

Crate gruel_util 

Source
Expand description

Shared utilities for the Gruel compiler:

  • span — source location tracking
  • error — compile-error / diagnostic types
  • [ice] — internal-compiler-error context capture
  • opsBinOp / UnaryOp shared 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 IceContext with automatic version and backtrace capture.
ice_error
Create a CompileError from an ICE context.