Staxueue
Jump to navigation
Jump to search
Staxueue is an esolang created by islptng. It has a stack-cross-queue (staxueue, or sxq for short).
The Stack-Cross-Queue
It's just, literally, a stack crossing a queue.
Let's visualize it.
a b c 1 2 3 4 5 6 7 d e f
The stack is a b c 4 d e f, and the queue is 1 2 3 4 5 6 7.
Note: If you pop, the queue may be splitted into 2 parts; So does dequeueing.
The instructions
$ Enqueues 0. # Pushes 0. / Transposes the SXQ. @ Rotates the SXQ clockwise. : Enqueue stack top. ; Push queue front. . Pop and discard. , Dequeue and discard. + Increment popped value and enqueue. - Decrement dequeued value and push onto stack. & Roll the queue. % Pop and enqueue; Dequeue and push. [code] While stack top is not 0, execute code. {code} While queue front is not 0, execute code.