#notation #structure #file #directory #path

fsn

File Structure Notation (.fsn) format parser

6 releases

0.1.4 Nov 25, 2022
0.1.3 Sep 12, 2022
0.0.0 Sep 12, 2022

#1768 in Parser implementations


Used in npi

MIT license

5KB
58 lines

File Structure Notation

File Structure Notation (.fsn) format parser

Install

$ cargo add fsn

or add fsn = "0.1.4" to [dependencies] in Cargo.toml

Examples

match parse_file(Path::new("./examples/c.fsn")){
    Ok(s) => {
        for dir in s.directories {
            println!("Dir: {dir}")
        }
        for file in s.files {
            println!("File: {}", file.name);
           println!("{}", file.contents)
        }
    },
    Err(e) => println!("err {e}")
}

Dependencies

~2–3MB
~53K SLoC