Queuenanimous

From Esolang
Jump to navigation Jump to search

Queuenanimous is an esolang by User:PythonshellDebugwindow.

Memory model

Queuenanimous uses an unbounded queue of unbounded signed integers.

Syntax

Like in brainfuck, each character of the program represents one command.

Commands

Dequeuing from an empty queue returns zero.

Command Effect
0 Enqueue zero
+ Dequeue N, enqueue N + 1
- Dequeue N, enqueue N - 1
> Dequeue N, enqueue N
[P] While loop: at each iteration, dequeue N, and break if N is zero

Turing-completeness

Queuenanimous can be translated from 3-cell brainfuck with no IO as follows:

3-cell brainfuck Queuenanimous
Start 000
+ +>>
- ->>
< >
> >>
[ [
] ]

External resources