Pește mort+
Jump to navigation
Jump to search
Pește mort+ (Romanian for Dead fish+) is an esolang invented by User:None1. It is a deadfish derivative and an extension to Pește mort.
It can print ASCII characters.
Commands
Command | Corresponding Romanian word | Meaning |
---|---|---|
c | creștere (increase) | Increment the accumulator |
s | scădere (decrease) | Decrement the accumulator |
p | pătrat (square) | Square the accumulator |
i | ieșire (output) | Output the accumulator |
o | oprire (stop) | Halt |
d | demonstrați (display) | Output the accumulator as ASCII |
Examples
XKCD Random Number
ccpi
Or
cccpsspcccd
Hello World!
cccpspccccccccdcccccccccccccccccccccccccccccdcccccccddcccdsssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssdssssssssssssdssssssssssssssssssssspssdssssssssdcccdssssssdssssssssdsssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssd
NOP
or:
o
Interpreter
Python
exec('x=0\n'+'\n'.join([{'c':'x+=1','s':'x-=1','p':'x*=x','i':'print(x)','o':'exit()','d':'print(chr(x),end="")'}[i]+'\nif x in [-1,256]:\n x=0' for i in input()]))