cktrs

A rust(🚀) parser for the CKT(🚀) config language.

usage

```rs use cktrs::parse; use std::fs;

fn main() { let unparsedfile = fs::readto_string("test.ckt").expect("cannot read file");

let file = parse(&unparsed_file)
    .expect("unsuccessful parse");

for (key, value) in file.into_iter() {
    println!("{}: {:?}", key, value);
}

} ```

cktrs::parse() returns a result containing a hashmap of all the tokens in the config. Each token is part of the cktrs::Tokens enum.

numerical table keys are indexed in the hashmap as a String