bml
BML Markup Language
BML is a simplified XML used by the SNES Preservation Project, see the BML grammar using PEG as input for the pest parser.
In contrast to its C++ reference implementation, this Rust implementation parses indents by pushing them on a stack to compare them instead of counting characters (stack-based-indent) and it allows tabulators between attributes (tabular-attributes) and between colons and multi-line data (tabular-colon-data) supporting tabulator-based along with space-based alignments.
Syntax highlighting is trivial, see vim-bml.
Usage
This crate works on Rust stable channel by adding it to Cargo.toml:
[]
= "0.3"
Examples
use BmlNode;
use TryFrom;
let root = try_from.unwrap;
let = root.nodes.next.unwrap;
assert_eq!;
assert_eq!;
License
Licensed under ISC.
Contribution
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the works by you shall be licensed as above, without any additional terms or conditions.