mf2_printer
The mf2_printer crate provides a pretty-printer for the Message Format 2
syntax. It can pretty-print an AST representing the Message Format 2 syntax back
into the human-readable MessageFormat 2 syntax.
Use the mf2_parser crate to parse a MessageFormat 2 string into an AST.
Usage
Add this to your Cargo.toml:
[]
= "0.1"
Then you can parse a string like this:
use parse;
use print;
let = parse;
if !diagnostics.is_empty
let pretty_printed = print;
println!;
License
This project is licensed under GPL-3.0-or-later.