s = space; l = line break; t = tab
ssstsssttsl
tl
ssl
sssttsssstl
tl
ssl
This only prints F and not a. I am not very certain about stacks and it is probably something to do with that.
s = space; l = line break; t = tab
ssstsssttsl
tl
ssl
sssttsssstl
tl
ssl
This only prints F and not a. I am not very certain about stacks and it is probably something to do with that.
I put your code into this online IDE: https://whitespace.kauaveel.ee/
It includes an on-the-fly disassembler, which is nice.
As is, your code produces an "Unexpected EOF" error. This is because of the last linebreak (
l). Removing that givesfrom the disassembler. I.e. what you thought was your second
pushis actually alabelinstruction.This is because the
printcinstruction is actually justtlss. You have an extralafter that, which combined with the following two spaces formslss(label).Fixed code: