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.
OCB
Jump to navigation
Jump to search
- The title of this article is not correct because of technical limitations. The correct title is actually []\.
[]\ is a 3-instruction joke esolang I designed which relies on loops to do anything remotely complicated. Each command has one operand; [ and ] have numerical operands, whereas \ has a + or - operand.
| Instruction | Meaning |
|---|---|
| [x | Start a while-not-x loop. |
| ]x | End a while-not-x loop. |
| \+ | Increment the memory cell. (And \- decrements.) |
Also, when a blank line or linebreak appears (depends on the mode), it has a memory leak and outputs the memory cell as ASCII. Everything is done mod 256.
Example programs
>> mode 1 (linebreak) [72\+]72 [101\+]101 [108\+]108 [111\+]111 [44\+]44 [32\+]32 [119\+]119 [111\+]111 [114\+]114 [108\+]108 [100\+]100 [33\+]33
Looping counter (ASCII mode) (???)
>> mode 1 (linebreak) \+ [0 \+]0 $> note: only works from 1-255, then it hits 256 which is 0 so the loop ends.