def λ(A):
A = A.replace(" ", "")
r1=r2=r3=r4=r7=0
r5=1
p=0
while p < len(A):
r6 = A[r5-1] + A[r5]
if r6 == "λλ":
r1 = (r1 + 1) % 256
elif r6 == "λx":
if r1 == 0:
r1 = r2
else:
r2 = r1
elif r6 == "λΛ":
r1 = 0
elif r6 == "Λλ":
print(chr(r2), end="")
elif r6 == "Λx":
r1 *= 2
elif r6 == "ΛΛ":
if r7 == 0:
r7 = 1
r3 = r5
r4 = r1
elif r4 < 1:
r7 = 0
else:
r5 = r3
r4 -= 1
r5 += 2
p += 2
λ("λλΛxΛxΛxΛxΛxΛxΛΛΛλΛΛ")
To embed this project on your website, copy the following code and paste it into your website's HTML: