conflag 0.1.1

A simple and powreful configuration language, extending JSON with declarative and functional language features.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
use std::env;
use std::fs;

fn main() {
    let args: Vec<String> = env::args().collect();
    if let [_, files @ ..] = &args[..] {
        for file in files {
            let contents = fs::read_to_string(file).unwrap();
            let value = conflag::parse(&contents).unwrap_or_else(|e| panic!("{}", e));
            println!("{}", value);
        }
    }
}