def goto(code):
    f = 0
    p = 0
    ff = [0]
    fff = {}
    m = ""
    q = 0
    loop1 = 0
    loop2 = 0
    while f < len(code):
        if code[f] == "R":
            if p == len(ff) - 1:
                ff.append(0)
            p += 1
        elif code[f] == "L":
            p = (p - 1) % len(ff)
        elif code[f] == "+":
            ff[p] = (ff[p] + 1) % 256

        elif code[f] == "-":
            ff[p] = (ff[p] - 1) % 256

        elif code[f] == "×":
            ff[p] = (ff[p] * 2) % 256

        elif code[f] == "÷":
            ff[p] = (ff[p] // 2) % 256
        elif code[f] == "S":   # 1セル文字化
            m = "".join(chr(x) for x in ff)
        elif code[f] == "P":   # 出力
            print(m)
        elif code[f] == "M":
            if ff[p] != 0:
                q = ff[p]
            else:
                ff[p] = q
        elif code[f] == "°":
            q = 0
        elif code[f] == "/":
            if loop2 < 1:
                loop1 = f
                loop2 = ff[p]
            else:
                loop2 -= 1
                f = loop1
                
        elif code[f] == "α":
            loop1 = f
            loop2 = ff[0]
            ff[0] = 0
        elif code[f] == "Z":
            ff[p] = 0
        elif code[f] == "s":
            print(ff)
        elif code[f] == "ř":
            fff[code[f-1]] = ff[p]
        elif code[f] == "Ř":
            ff[p] = fff[code[f-1]] 
        f += 1
goto("+××+R+××××××M/αRM/LLLLLL++++++++R+++++R++++++++++++R++++++++++++R+++++++++++++++RZRZSP")
    

Embed on website

To embed this project on your website, copy the following code and paste it into your website's HTML: