better errors

This commit is contained in:
2024-04-14 00:11:39 +02:00
parent db3f1ec61c
commit b24b34cb44
3 changed files with 78 additions and 67 deletions
+2 -1
View File
@@ -5,7 +5,8 @@ use std::fs;
fn main() {
let contents = fs::read_to_string("code.ws").expect("cannot read for some reason");
let code_file = "code.ws";
let contents = fs::read_to_string(code_file).expect("cannot read for some reason");
let result = transpiler::transpile(contents, 0);
println!("{result}")
}