issue quick patch for a stupid issue i didn't catch

This commit is contained in:
abbie 2022-01-29 11:08:41 +00:00
parent 28a48986ba
commit 0beea08571
No known key found for this signature in database
GPG key ID: 04DDE463F9200F87
2 changed files with 2 additions and 2 deletions

View file

@ -1,6 +1,6 @@
[package] [package]
name = "lintc" name = "lintc"
version = "0.2.2" version = "0.2.3"
edition = "2021" edition = "2021"
build = "build.rs" build = "build.rs"

View file

@ -154,7 +154,7 @@ fn parse(code: String) -> String {
i = i + 1; i = i + 1;
} }
} }
blocks[3].push_str(&format!("LIT {} .{} STZ\n", value[1], counter.to_string())); blocks[3].push_str(&format!("LIT {} .{} STZ\n", value[1], i.to_string()));
} }
println!("Assigned value to variable {}.", value[0]); println!("Assigned value to variable {}.", value[0]);
} else if line.contains(";;") { } else if line.contains(";;") {