QWOP

From Esolang
Jump to: navigation, search

QWOP is an esolang by User:Rdococ. As the name suggests, it uses four characters: Q, W, O and P. All others are ignored.

Overview

Q is a quine. Here is the shortest non-null quine:

Q

W is a conditional. If the input character is not equal to the next character, it will skip the next command:

Wxy

O is a loop. It will return the pointer to the last O, if one exists. Here is an infinite loop:

OO

P is a print command. It will print the next character rather than executing it:

Px

Examples

Hello, world!

PHPePlPlPoP PWPoPrPlPdP!

Quine

Q

Truth-machine

OW1P1W1OW0P0