djal_parser 0.1.2

A library to parse configuration files
Documentation
1
2
3
4
5
6
7
8
9
10
use std::path::Path;

use djal_parser::{datastructure::ParsedData};

fn main() {
    let path = Path::new("/home/bert/Projects/RustProjects/djal_parser/src/example_config_file.dconfig");
    let s = ParsedData::from_file(path).unwrap();

    println!("{}", s.as_number("nums").unwrap());
}