From 5f4fe1a1c41677c90062139e9aa5281f20cf947b Mon Sep 17 00:00:00 2001 From: TudbuT Date: Tue, 17 May 2022 20:02:18 +0200 Subject: [PATCH] removr unused code --- ISBPL.java | 2 +- examples/helloworld.isbpl | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/ISBPL.java b/ISBPL.java index 34d76f4..44c68f5 100644 --- a/ISBPL.java +++ b/ISBPL.java @@ -256,7 +256,7 @@ public class ISBPL { return (idx, words, file, stack) -> { idx++; int i = 1; - for(; !words[idx].equals(";") && !words[idx].isEmpty(); idx++, i++); + for(; !words[idx].equals(";"); idx++, i++); for(idx--; !words[idx].equals("with"); idx--) { frameStack.get().peek().define(words[idx], stack.pop()); } diff --git a/examples/helloworld.isbpl b/examples/helloworld.isbpl index c53475e..9b646a1 100644 --- a/examples/helloworld.isbpl +++ b/examples/helloworld.isbpl @@ -1,4 +1,5 @@ func main { + with args "Hello World!\n" puts 0 -} \ No newline at end of file +}