diff --git a/Cargo.lock b/Cargo.lock index 214d526..9503659 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -99,7 +99,7 @@ checksum = "d3fd119d74b830634cea2a0f58bbd0d54540518a14397557951e79340abc28c0" [[package]] name = "granite" -version = "1.0.0" +version = "1.0.1" dependencies = [ "clap", ] diff --git a/Cargo.toml b/Cargo.toml index 6b4033e..9a59bdf 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "granite" -version = "1.0.0" +version = "1.0.1" edition = "2021" [dependencies] diff --git a/src/main.rs b/src/main.rs index f6f49a5..6fcd551 100644 --- a/src/main.rs +++ b/src/main.rs @@ -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; }