pub fn format_lex_source(source: &str) -> Result<String, String>Expand description
Round-trip transformation: parse and re-serialize
Useful for formatting operations and testing.
ยงExample
use lex_babel::transforms::format_lex_source;
let source = "Hello world\n";
let formatted = format_lex_source(source).unwrap();
assert_eq!(formatted, "Hello world\n");