leekscript_tooling/formatter/mod.rs
1//! `LeekScript` tree printer.
2//!
3//! Prints the syntax tree by emitting tokens in source order without modifying the tree.
4//! Use [`format`] with a root [`sipha::red::SyntaxNode`] and [`FormatterOptions`].
5//! Modifications (e.g. semicolon insertion/removal) can be added later as separate passes.
6
7mod config;
8mod driver;
9mod options;
10
11pub use config::{load_formatter_options_from_dir, load_formatter_options_from_file};
12pub use driver::{format, FormatDriver};
13pub use options::{BraceStyle, FormatterOptions, IndentStyle, SemicolonStyle};