UnaryBrain

From Esolang
Jump to navigation Jump to search

UnaryBrain is an esolang invented by User:None1, it shows that brainfuck with a one-symbol tape is definitely not TC.

Difference from BF

Yes, every cell in UnaryBrain can only have one value: 0. So the instructions in UnaryBrain are like this:

+ Do nothing
- Do nothing
, Read a character but discard it
. Print a null byte
> Do nothing
< Do nothing
[code] Do nothing

Yes, because the cell is always zero, brackets do nothing. Increments and decrements do nothing because the cell remains zero after increment and decrement. Finally, < and > do nothing because the tape is unbounded and the tape after moving the pointer will be exactly the same as the tape before.

Examples

NOP

++--<[++++]>

Print a null byte

.

Computational class

Total, because there is no control flow.

See also