This commit is contained in:
abbie 2024-08-14 13:05:36 +01:00
parent a8dc83924b
commit 3c5a01b558
Signed by: threeoh6000
GPG key ID: 801FE4AD456E922C
3 changed files with 3 additions and 2 deletions

2
Cargo.lock generated
View file

@ -99,7 +99,7 @@ checksum = "d3fd119d74b830634cea2a0f58bbd0d54540518a14397557951e79340abc28c0"
[[package]] [[package]]
name = "granite" name = "granite"
version = "1.0.0" version = "1.0.1"
dependencies = [ dependencies = [
"clap", "clap",
] ]

View file

@ -1,6 +1,6 @@
[package] [package]
name = "granite" name = "granite"
version = "1.0.0" version = "1.0.1"
edition = "2021" edition = "2021"
[dependencies] [dependencies]

View file

@ -295,6 +295,7 @@ fn execute(program: Program) {
stack.push(current_statement); stack.push(current_statement);
} else if statement.operator == "|" { } else if statement.operator == "|" {
current_statement = stack.pop().expect("Stack underflow."); current_statement = stack.pop().expect("Stack underflow.");
current_statement = current_statement + 1;
} }