this post was submitted on 19 Jun 2023
6 points (100.0% liked)
Esoteric Languages
240 readers
1 users here now
Icon base by Lorc under CC BY 3.0
founded 1 year ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
Sounds like brainfuck with some extra arithmetic operations, but are there better loops?
You can do a loop by storing the "@" program counter in the stack, Performing the body and the check for exit, if exit then jump to next step after the loop, pop the "$" and store in "$" and "@" to return to the top of the loop. After the loop clean the stack by poping the stored top of loop address and discarding it.
I think it is much more expressive than BrainFuck.
btw. thanks for the example
You're Welcome, I have yet to figgure out a good way to do a top exit loop (where the loop act zero or more times) w/o using a flag or jumping to a specific line number to exit.
i guess everything is much more expressive than brainfuck :D. But it reminded me of it when i first saw it
OK i see now how it works. The page could may contain an example for loops resp. jumps.