Skip to main content

oak_scheme/formatter/
mod.rs

1#![doc = include_str!("../readme.md")]
2
3/// Scheme Code Formatter
4pub struct SchemeFormatter {
5    _indent_level: usize,
6    _indent_str: String,
7}
8
9impl SchemeFormatter {
10    /// Create a new Scheme formatter
11    pub fn new() -> Self {
12        Self {
13            _indent_level: 0,
14            _indent_str: "  ".to_string(), // 2 spaces for Scheme
15        }
16    }
17
18    /// Format the given Scheme source code string
19    pub fn format(&self, source: &str) -> String {
20        source.to_string()
21    }
22}
23
24impl Default for SchemeFormatter {
25    fn default() -> Self {
26        Self::new()
27    }
28}