Implement support for global variables in nac3standalone #546

Merged
sb10q merged 10 commits from enhance/global-vars into master 2024-10-04 14:00:10 +08:00
1 changed files with 2 additions and 4 deletions
Showing only changes of commit 88d0ccbf69 - Show all commits

View File

@ -297,8 +297,7 @@ fn main() {
let program = match fs::read_to_string(file_name.clone()) {
Ok(program) => program,
Err(err) => {
println!("Cannot open input file: {err}");
return;
panic!("Cannot open input file: {err}");
}
};
@ -340,8 +339,7 @@ fn main() {
unifier,
primitives,
) {
eprintln!("{err}");
return;
panic!("{err}");
}
}
// allow (and ignore) "from __future__ import annotations"