import sys

mapping = [("=", "_EQOP", "IM_EQOP"),
           ("]", "_ARSCR", "IM_ARSCR"),
           ("[", "_ARSCL", "IM_ARSCL"),
           (")", "_PARR", "IM_PARR"),
           ("(", "_PARL", "IM_PARL")]

sem = {"delim": "_SEMDELIM"}

indentation = 0

inp = sys.stdin
buildup = ''
prompt_normal = ">- "
prompt_indent = "-- "

sys.__stdout__.write(prompt_normal)
sys.__stdout__.flush()

for line in inp:
    for r in mapping:
        line = line.replace(r[2], r[1])
    for r in mapping:
        line = line.replace(r[1], r[0])
    line = line.replace('\\n', '\n')

    line = line.rstrip()

    if sem['delim'] == 'ws' and line.endswith(':'):
        indentation += 1
        buildup += line + '\n'
        sys.__stdout__.write(prompt_indent)
        sys.__stdout__.flush()
        continue

    if sem['delim'] == 'ws' and line.startswith(' '):
        buildup += line + '\n'
        sys.__stdout__.write(prompt_indent)
        sys.__stdout__.flush()
        continue

    if sem['delim'] == 'ws' and indentation > 0:
        indentation = 0
        line = buildup
        buildup = ''

    try:
        r = eval(line)
        if r is not None:
            print(r)
    except:
        try:
            exec(line)
        except:
            print("Error be this -> " + str(line))
    sys.__stdout__.write(prompt_normal)
    sys.__stdout__.flush()

@@ -815,143 +815,815 @@
 == '
-ws' and line.startswith(' '):%0A        buildup += line + '%5Cn'%0A        sys.__stdout__.write(prompt_indent)%0A        sys.__stdout__.flush()
+br' and line.endswith('%7B'):%0A        indentation += 1%0A        buildup += line%5B:-1%5D + ':' + '%5Cn'%0A        sys.__stdout__.write(prompt_indent)%0A        sys.__stdout__.flush()%0A        continue%0A%0A    if sem%5B'delim'%5D == 'ws' and line.startswith(' '):%0A        buildup += line + '%5Cn'%0A        sys.__stdout__.write(prompt_indent)%0A        sys.__stdout__.flush()%0A        continue%0A%0A    if sem%5B'delim'%5D == 'br' and indentation %3E 0:%0A        if line.startswith('%7D'):%0A            indentation -= 1%0A            if indenation %3E 0:%0A                sys.__stdout__.write(prompt_indent)%0A                sys.__stdout__.flush()%0A                continue%0A        else:%0A            buildup += (' ' * indentation) + line.lstrip() + '%5Cn'%0A            sys.__stdout__.write(prompt_indent)%0A            sys.__stdout__.flush()%0A            continue
 %0A   

Support bracket-delimiters in the interpreter