Skip to main content

Crate draxl_printer

Crate draxl_printer 

Source
Expand description

Language-dispatch facade for canonical Draxl rendering.

This crate renders the AST back into compact Draxl surface syntax and re-exports the shared canonicalization helper from draxl-ast.

Today the crate exposes only the Rust backend, but the public rendering surface is language-aware so additional backends can be added behind the same facade over time.

Functionsยง

canonicalize_file
Returns a canonicalized clone of the file.
print_file
Prints a file using the default Rust backend.
print_file_for_language
Prints a file using the selected language backend.