We are currently working on new rules for what content should and shouldn't be allowed on this website, and are looking for feedback! See Esolang:2026 topicality proposal to view and give feedback on the current draft.
User:Tommyaweosme/brainfuck stack
Jump to navigation
Jump to search
in order to make a stack in brainfuck, you have to make a few operations
first, we have to make a program that moves one cell right.
[->+<]
next, we find the last non-zeroed cell
[>]<
then, we can make this
[>]<[->+<]
this turns this:
16540
into this:
16504
but we need this:
16540
to turn into this:
01654
so, what do we do?
[[>]<[->+<]<]
now, for the push
[[>]<[->+<]<],
for the pop, we do this
(what do do with pop)[-][>]<[[<]>[-<+>]>]
done! will add swap and duplicate later