queue-based esolang

From Esolang
Jump to navigation Jump to search

"queue-based esolang" is, well, a queue-based esolang. It's also User:Emelang's first time in a while writing an interpreter for one of his esolangs.[1]

Syntax

p: pushes the character after it onto the queue.

q: pops the first item on the queue and discards it.

Q: pops the first item on the queue and outputs it.

!text!: comment.

Examples

Hello, world!

pHpeplplpop,p pWpoprplpdp!QQQQQQQQQQQQQ

A shorter variant that only works in the Python implementation:

pHpeplplpop,p pWpoprplpdp!{Q}

Interpreters

References