锟斤拷烫烫烫fuck

From Esolang
Jump to navigation Jump to search

锟斤拷烫烫烫fuck is based on Brainfuck.

Syntax

Syntax of 锟斤拷烫烫烫fuck:

Caption text
锟斤拷烫烫烫fuck Brainfuck
>
<
+
-
.
,
[
]

Program

Hello, world

爨爨爨爨爨爨爨爨鬱靐
龘爨爨爨爨爨爨爨爨齉
亹龘爨爨爨爨爨爨爨爨
麤齉爨爨爨爨爨鬱靐龘
爨爨爨爨爨齉亹龘爨爨
爨爨麤爨爨爨爨爨爨爨
麤麤爨爨爨麤齉爨爨爨
爨爨爨爨爨鬱靐龘靐靐
靐靐靐靐靐靐齉亹龘靐
靐靐麤齉爨爨爨鬱靐龘
靐靐靐齉亹龘靐靐靐麤
齉爨爨爨爨爨爨爨爨爨
鬱靐龘爨爨爨爨爨爨爨
爨爨齉亹龘爨爨爨爨爨
爨麤靐靐靐靐靐靐靐靐
麤爨爨爨麤靐靐靐靐靐
靐麤靐靐靐靐靐靐靐靐
麤齉爨爨爨爨爨爨爨爨
鬱靐龘靐靐靐靐靐靐靐
靐齉亹龘靐靐靐麤齉

A+B Problem

TOO LONG

Interpreter in Python

import sys
def interpretion(code):
    s=[]
    matches={}
    tape=[0]*1000000
    for i,j in enumerate(code):
        if j=='鬱':
           s.append(i)
        if j=='亹':
            m=s.pop()
            matches[m]=i
            matches[i]=m
    cp=0
    p=0
    while cp<len(code):
        if code[cp]=='爨':
            tape[p]=(tape[p]+1)%256
        if code[cp]=='靐':
            tape[p]=(tape[p]-1)%256
        if code[cp]=='靈':
            c=sys.stdin.read(1)
            tape[p]=(ord(c) if c else 0)%256
        if code[cp]=='麤':
            print(chr(tape[p]),end=)
        if code[cp]=='龘':
            p-=1
        if code[cp]=='齉':
            p+=1
        if code[cp]=='鬱':
            if not tape[p]:
                cp=matches[cp]
        if code[cp]=='亹':
            if tape[p]:
                cp=matches[cp]
        cp+=1
interpretion(sys.stdin.read())

See also

Brainf凵ck

Categories