This turing-complete, brainfuck-based esolang was created as a challenge for Upsilon Pi Epsilon's Nu chapter.
Brainfuck | UPE-lang |
---|---|
- |
u |
+ |
U |
< |
p |
> |
P |
[ |
e |
] |
E |
Of course, rather than cells having values 0-255, cells have values uUpPeE
, in that order. Incrementing E
wraps back around to u
.
Hello world:
$ upe 'UPUUUPu'
UPE
Move the value of the first cell to the second cell:
$ upe 'euPUpE' 'pu'
up
Sum from one to n, modulo 6:
$ upe 'ePUpuEPeePUPUppuEPPeuppUPPEpuEpeePepUPuEEppEPepUPuE' 'E'
Puuuuuuu