From 5accf661800f455f86d7dca6dfad41508bc6ae0d Mon Sep 17 00:00:00 2001 From: n3tael Date: Tue, 13 Feb 2024 12:56:17 +0200 Subject: [PATCH] 1.13 --- README.md | 2 +- src/execute.rs | 11 ----------- 2 files changed, 1 insertion(+), 12 deletions(-) diff --git a/README.md b/README.md index ecfe7ec..617e80c 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,2 @@ # Labast -A Labaski interpreter written in Rust. Fully supports Labashki specs 1.12. \ No newline at end of file +A Labaski interpreter written in Rust. Fully supports Labashki specs 1.13. \ No newline at end of file diff --git a/src/execute.rs b/src/execute.rs index 3691d44..7351d10 100644 --- a/src/execute.rs +++ b/src/execute.rs @@ -34,17 +34,6 @@ fn find_prefix_operators(instruction: &mut Instruction, memory: &mut StackVec) { instruction.name = instruction.name.chars().skip(1).collect(); instruction.data = memory.pop(); } - Some('^') => { - instruction.name = instruction.name.chars().skip(1).collect(); - - if instruction.name.chars().nth(0) != Some('#') { - println!("{0} {1}", instruction.name, instruction.data.to_string()); - } else if instruction.arg.is_empty() { - println!("{}", instruction.name); - } else { - println!("{0} {1}", instruction.name, instruction.arg); - } - } _ => {} } }