#![doc = include_str!("readme.md")]
use crate::ast::JRoot;
pub struct JFormatter;
impl JFormatter {
pub fn new() -> Self {
Self
}
pub fn format(&self, source: &str) -> String {
self.basic_format(source)
}
fn basic_format(&self, source: &str) -> String {
source.to_string()
}
pub fn format_root(&self, _root: &JRoot) -> String {
"TODO: Implement J AST formatting".to_string()
}
}
impl Default for JFormatter {
fn default() -> Self {
Self::new()
}
}