use std::fs; use std::collections::HashMap; mod parsing; mod character; fn main() { let mut characters = HashMap::::new(); let file_contents: String = fs::read_to_string("stories/story.ha").unwrap(); // Split the file contents into tokens let tokens: Vec<&str> = file_contents .split_whitespace() .collect(); // Run the parsing process match parsing::token_parse(&tokens, &mut characters) { Ok(()) => println!("Program exited successfully"), Err(error) => println!("{}", error), } }