1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
//! Typeset Compiler Module
//!
//! This module contains the complete compiler implementation for the typeset
//! pretty printing library. The compiler transforms Layout ASTs through
//! multiple intermediate representations before producing the final Doc output.
//!
//! ## Architecture
//!
//! The compiler uses a multi-pass architecture:
//! Layout → Edsl → Serial → LinearDoc → FixedDoc → RebuildDoc →
//! DenullDoc → FinalDoc → Doc → String
//!
//! ## Module Organization
//!
//! - `types/` - Type definitions for Layout, intermediate representations, and Doc
//! - `passes/` - Individual compiler passes
//! - `render/` - Document rendering system
//! - `memory.rs` - Memory management utilities
//! - `error.rs` - Error types and handling
//! - `constructors.rs` - Layout construction functions
// Re-export core types
pub use CompilerError;
pub use TwoBufferBumpAllocator;
pub use ;
// Legacy implementation removed - now using modular architecture
// Re-export the main compilation functions using new modular pipeline
pub use ;
// Re-export constructor functions using new modular types
// pub use constructors::{
// format_layout,
// };