开?关!
Jump to navigation
Jump to search
开?关!is a very funny esolang invented by User:A.
Syntax
The syntax is:
identifier?identifier!
Identifiers
开: If the cell under the pointer is on, execute the next instruction. 关: If the cell under the pointer is off, execute the next instruction.
Example:
开?关!
If the cell under the pointer is on, turn it off.
变: Negate the cell under the pointer (on -> off, off -> on).
Example:
开?变!
If the cell under the pointer is on, negate it (turn it off).
溜: Enter the loop if the condition before it is true. 回: End the loop. 空: Do nothing. →: Move the pointer right. ←: Move the pointer left.
Computational Class
It is equivalent to Brainbool without I/O, which is enough for Turing-completeness if the final tape contents are considered as output.
> : → < : ← + : 变 [ : 溜 ] : 回