Or+3
Jump to navigation
Jump to search
Or+3 is a minimalist (?) esoteric programming language. It is a superset of Or++ hence Or.
Commands
Or+3 has a single stack (infinite
false
s at bottom) and 11 commands.
| Command | Action |
|---|---|
f |
Push false to the stack |
t |
Push true to the stack |
p |
Pop the top of the stack |
r |
Reverse the entire stack |
h |
Halt if the stack is empty |
j |
Jump to the first instruction |
n |
negate top of stack |
s |
Skip next instruction |
c |
Skip next instruction if stack top is true (also pops the stack) |
i |
inputs a bit and push to stack |
o |
pop a bit to stdout |
Or+3 requires little-endian stdin ands stdouts with 8-bit bytes.
Examples
Hello, World!
fofofotofofotofotofotofofototofofof ototofototofofofototofototofotototo tofototofofofototofotofofofofofofof otofofotototofotofotofototototofoto tofofotofofotototofofofototofototof ofofotofofototofotofofofofotofofo
Cat
ioj
Collatz sequence
Copied from the Or++ page.
ftffftrprhtffrprhtfftfftffrprhrprhrprhrprhj