mf2_parser
The mf2_parser crate provides a parser for the Message Format 2 syntax. It can
parse any sequence of Unicode scalar values (valid UTF-8) into an AST
representing the Message Format 2 syntax. The parser has very strong error
recovery, so it can parse even very broken or incomplete input (like is common
in editors).
Use the mf2_printer crate to pretty-print the AST back into the human-readable
MessageFormat 2 syntax.
Usage
Add this to your Cargo.toml:
[]
= "0.1"
Then you can parse a string like this:
use parse;
let = parse;
if !diagnostics.is_empty
println!;
License
This project is licensed under GPL-3.0-or-later.