QwertyScript

From Esolang
Jump to navigation Jump to search

Description

QwertyScript is a ridiculous scripting language where the only commands are letters of QWERTYUIOP.

How It Works

Everything that is not qwertyuiop/QWERTYUIOP is ignored by the interpreter.

variables work in an integer stack, you can push and pop and modify the elements.

Instructions

Q: push a number 0 through 9 to the stack by putting a letter Q through P directly after example: QT - push 4 to stack
W: remove top element from stack
E: print the top element of the stack as a number
R: print the ascii value of the top element of the stack
T: add and remove the two top elements of the stack, leaving only the sum
Y: subtract the top element from the second top element, leaving only the difference
U: multiply the top two elements and leave the product
I: divide the second top element by the top element and leave the quotient
O: divide the top two elements and leave the remainder
P: duplicate the top element

Examples

An example of a QwertyScript that prints "Hello World!\n" to the command line:

QOQPUR
QPQPUQPTQYQUTTR
QITRR
QRTR
QYQUTYQUQUUYQEIR
QRUQPYR
QTQUUTR
QRTR
QUYR
QOYR
QOQOUQRTYR
QRYQRIR

How To Use

The interpreter can be found on the QwertyScript Github Page