queue-based 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
- Online interpreter: https://esolang-interpreters.glitch.me/qbe (is somewhat buggy though)
- Python implementation by User:Ractangle (which includes an aditional command): https://pastebin.com/KpWf1kDU