Skip to main content

pepl_types/
lib.rs

1//! Shared types for the PEPL compiler.
2//!
3//! This crate defines the AST node types, source spans, error types,
4//! and other shared data structures used across all compiler stages.
5
6pub mod ast;
7pub mod ast_diff;
8mod error;
9mod span;
10
11pub use error::{CompileErrors, ErrorCategory, ErrorCode, PeplError, Severity, MAX_ERRORS};
12pub use span::{SourceFile, Span};
13
14/// Result type used throughout the PEPL compiler.
15pub type Result<T> = std::result::Result<T, PeplError>;