This is a rust parser for USDX song files. Files are written as a plaintext files that contain data about the song and notes/lyrics.
Direct read from a file:
Rust
let song = Song::from_file("tests/test.txt").unwrap();
dbg!(song);
Read from a &str
:
Rust
let text = std::fs::read_to_string("tests/test.txt").unwrap();
let song = Song::from_str(&text).unwrap();
dbg!(song);
Parse directly from String: ```Rust let text = r#"
"#; let song: Song = text.to_string().into(); dbg!(song); ```