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 +}