# cktrs A rust(🚀) parser for the [CKT](https://git.sr.ht/~cricket/ckt)(🚀) config language. ## usage ```rs use cktrs::parse; use std::fs; fn main() { let unparsed_file = fs::read_to_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`