From 3c5a01b558ac0b0bd2e1a009e64822a8ac6061fc Mon Sep 17 00:00:00 2001 From: threeoh6000 Date: Wed, 14 Aug 2024 13:05:36 +0100 Subject: [PATCH] :3 --- Cargo.lock | 2 +- Cargo.toml | 2 +- src/main.rs | 1 + 3 files changed, 3 insertions(+), 2 deletions(-) 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; }