documentation

This commit is contained in:
2026-05-18 13:49:35 +01:00
parent 051bfe46e4
commit 5f294cceb2
6 changed files with 728 additions and 652 deletions
+2 -2
View File
@@ -51,7 +51,7 @@ async fn main()
error!("No filename specified");
exit(10);
});
let file = File::open(format!("../stories/{file_name}")) // Get the file
let file = File::open(file_name) // Get the file
.unwrap_or_exit("Failed to read file.", 11);
let mut archive = ZipArchive::new(file) // Open the archive
.unwrap_or_exit("Failed to open archive", 12);
@@ -93,7 +93,7 @@ async fn main()
// setup the parsing stuff //
// Read the file and split it into tokens
// file read from a zip file /story.ha
// file read relative to current directory
let mut story_file = archive.by_name("story.ha")
.unwrap_or_exit("Unable to read story file", 14);
let mut file_contents = String::new();
+1 -1
View File
@@ -57,7 +57,7 @@ pub fn token_parse(
continue 'parse_loop
},
// Handle a character
Some(tokenise::Token::Character(character_name)) =>
Some(tokenise::Token::Character(character_name)) => // TODO add support for narrator
{
index = match character_parse::character_parse(index+1,tokens,character_name.to_string(),characters,data_to_send)
{