leekscript-tooling 0.1.0

LeekScript tooling: formatter, visitor, tree display, transform
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
//! `LeekScript` tree printer.
//!
//! Prints the syntax tree by emitting tokens in source order without modifying the tree.
//! Use [`format`] with a root [`sipha::red::SyntaxNode`] and [`FormatterOptions`].
//! Modifications (e.g. semicolon insertion/removal) can be added later as separate passes.

mod config;
mod driver;
mod options;

pub use config::{load_formatter_options_from_dir, load_formatter_options_from_file};
pub use driver::{format, FormatDriver};
pub use options::{BraceStyle, FormatterOptions, IndentStyle, SemicolonStyle};