:3
This commit is contained in:
parent
a8dc83924b
commit
3c5a01b558
3 changed files with 3 additions and 2 deletions
2
Cargo.lock
generated
2
Cargo.lock
generated
|
@ -99,7 +99,7 @@ checksum = "d3fd119d74b830634cea2a0f58bbd0d54540518a14397557951e79340abc28c0"
|
|||
|
||||
[[package]]
|
||||
name = "granite"
|
||||
version = "1.0.0"
|
||||
version = "1.0.1"
|
||||
dependencies = [
|
||||
"clap",
|
||||
]
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
[package]
|
||||
name = "granite"
|
||||
version = "1.0.0"
|
||||
version = "1.0.1"
|
||||
edition = "2021"
|
||||
|
||||
[dependencies]
|
||||
|
|
|
@ -295,6 +295,7 @@ fn execute(program: Program) {
|
|||
stack.push(current_statement);
|
||||
} else if statement.operator == "|" {
|
||||
current_statement = stack.pop().expect("Stack underflow.");
|
||||
current_statement = current_statement + 1;
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue