Lesbiansandwhich
Jump to navigation
Jump to search
Lesbiansandwhich is a self-modifying language created by User:Gwepz.
Commands are numbers reffering to python code in the list: "pt += 1", "pt -= 1", "print(letters[code[pt]])", "code[pt] += 1", "code[pt] -= 1", "if code[pt] == 0: ct = pt", "ct = pt", and "code[pt] = input()"
Interpreter:
import string
ct, pt, code, letters = 0, 0, list(input("enter your code: ")), list(string.printable)
com = ["pt += 1", "pt -= 1", "print(letters[code[pt]])", "code[pt] += 1", "code[pt] -= 1", "if code[pt] == 0: ct = pt", "ct = pt", "code[pt] = input()"]
while ct < len(code):
exec(com[int(code[ct])]); ct += 1