1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
//! Ritobin text format parser and writer for League Toolkit.
//!
//! This crate provides functionality to parse and write the ritobin text format,
//! which is a human-readable representation of League of Legends bin files.
//!
//! # Example
//!
//! ```rust,ignore
//! use ltk_ritobin::{parse, write};
//!
//! // Parse ritobin text
//! let text = r#"
//! #PROP_text
//! type: string = "PROP"
//! version: u32 = 3
//! "#;
//!
//! let file = parse(text).unwrap();
//! let tree = file.to_bin_tree();
//!
//! // Write back to text
//! let output = write(&tree).unwrap();
//! ```
//!
//! # Error Reporting
//!
//! Parse errors include span information compatible with [`miette`] for rich
//! error reporting with source highlighting:
//!
//! ```rust,ignore
//! use ltk_ritobin::parse;
//! use miette::Report;
//!
//! let text = "test: badtype = 42";
//! match parse(text) {
//! Ok(file) => { /* ... */ }
//! Err(e) => {
//! // Print with miette formatting
//! eprintln!("{:?}", Report::new(e));
//! }
//! }
//! ```
// Nom-style parsers use elided lifetimes extensively
pub use *;
pub use *;
pub use ;
pub use *;
pub use *;