From Esolang
Jump to navigation Jump to search

Selfie is language by User:ChuckEsoteric08 inspired by Muriel


At the start of the program variables are set to 0. Unlike Muriel after executing subprogram it would go back to the program

.X. Output X
,X'Y, Set variable X to Y
!X! Execute X as Selfie program
(X'Y'Z) Execute Z as Selfie program if variable X is not Y


X+Y Return X + Y
X-Y Return X - Y
X*Y Return X * Y
X/Y Return X / Y
=X= Return value of variable X
? Return user input
~ Return currently running program's source code


Hello, World!

.Hello, World!.

Infinite loop


Truth machine


Use of ~

In the program:


variable x would be .a,x'~,, not .a!.a,x'~,!

Computational class

Selfie is Turing-complete because it is possible to translate PMMN without "else" blocks to it.





if(dec(x)) {...}:


while(dec(x)) {...} and loop is named y: