We are currently working on new rules for what content should and shouldn't be allowed on this website, and are looking for feedback! See Esolang:2026 topicality proposal to view and give feedback on the current draft.

¡¡¡¡¡¡¡¡¡¡¡іііііііііііііІІІІІІІІІIIIIIIIIIIIIlllllllllll

From Esolang
Jump to navigation Jump to search
¡¡¡¡¡¡¡¡¡¡¡іііііііііііііІІІІІІІІІIIIIIIIIIIIIlllllllllll
Designed by Gas
Appeared in 2026
Computational class Unknown
Reference implementation Unimplemented
Influenced by Brainfuck, IDN homograph attack

¡¡¡¡¡¡¡¡¡¡¡іііііііііііііІІІІІІІІІIIIIIIIIIIIIlllllllllll is an esoteric programming language that is a homoglyphic re-encoding of Brainfuck. Source code consists only of five visually similar Unicode symbols; commands are encoded by the length of a run of identical glyphs and terminated by the separator l.

The language is a joke about Unicode normalization, copy-paste, and "unreadable" code. Do not use it in production: different fonts, messengers, and editors may change code points or visual appearance.

Name

Official name:

¡¡¡¡¡¡¡¡¡¡¡іііііііііііііІІІІІІІІІIIIIIIIIIIIIlllllllllll

Unofficial abbreviation: ¡іІIl. The abbreviation is not part of the specification.

Important: the interpreter must distinguish code points. Unicode normalization must be disabled. і (Cyrillic small letter i, U+0456) is not Latin i. І (Cyrillic capital letter I, U+0406) is not Latin I.

Alphabet

Symbol Code point Role
¡ U+00A1 pointer movement command
і U+0456 arithmetic command
І U+0406 I/O command
I U+0049 control-flow command
l U+006C separator / no-op

All characters outside the alphabet are ignored and treated as comments. Spaces, newlines, and punctuation outside the alphabet do not affect the program.

Syntax

The source is split into maximal runs of identical symbols. A run of l of any length is a separator and is ignored. A run of one of the symbols ¡, і, І, I of length 1 or 2 is a command. A run longer than 2 is a syntax error.

In other words, a program is a sequence of blocks of the form:

[symbol][symbol]? l

where the second symbol is optional and the trailing l separates commands.

Semantics

Run Brainfuck equivalent Action
¡ > move pointer right
¡¡ < move pointer left
і + increment current cell by 1 modulo 256
іі - decrement current cell by 1 modulo 256
І . output current cell as a byte
ІІ , input one byte; EOF yields 0
I [ if current cell is 0, jump to matching II
II ] if current cell is nonzero, jump to matching I
l — separator, no-op

The tape is infinite to the right; initial cell values are 0. The pointer may not move left of zero: this is a runtime error. Cells are 8-bit, and overflow wraps.

Because the language is a re-encoding of Brainfuck, it is Turing-complete.

Example: Hello, World!

Source Brainfuck:

++++++++[>++++[>++>+++>+++>+<<<<-]>+>+>->>+[<]<-]>>.>---.+++++++..+++.>>.<-.<.+++.------.--------.>>+.>++.

Program in ¡іІIl:

іlіlіlіlіlіlіlіl Il ¡l іlіlіlіl Il ¡l іlіl ¡l іlіlіl ¡l іlіlіl ¡l іl ¡¡l¡¡l¡¡l¡¡l ііl IIl ¡l іl ¡l іl ¡l ііl ¡l ¡l іl Il ¡¡l IIl ¡¡l ііl IIl ¡l ¡l Іl ¡l ііlііlііl Іl іlіlіlіlіlіlіl ІlІl іlіlіl Іl ¡l ¡l Іl ¡¡l ііl Іl ¡¡l Іl іlіlіl Іl ііlііlііlііlііlііl Іl ііlііlііlііlііlііlііlііlііl Іl ¡l ¡l іl Іl ¡l іlіl Іl

Spaces and newlines in the example are ignored.

Translator from Brainfuck

MAP = {
    '+': 'іl',
    '-': 'ііl',
    '>': '¡l',
    '<': '¡¡l',
    '.': 'Іl',
    ',': 'ІІl',
    '[': 'Il',
    ']': 'IIl',
}

def bf_to_esolang(bf):
    return ''.join(MAP[c] for c in bf if c in MAP)

Reference interpreter

#!/usr/bin/env python3
import sys

ALPH = "¡іІIl"
CMD = {
    "¡": ">", "¡¡": "<",
    "і": "+", "іі": "-",
    "І": ".", "ІІ": ",",
    "I": "[", "II": "]",
}

def parse(src):
    src = "".join(c for c in src if c in ALPH)
    out = []
    i = 0
    while i < len(src):
        j = i + 1
        while j < len(src) and src[j] == src[i]:
            j += 1
        ch, n = src[i], j - i
        if ch != "l":
            key = ch * n
            if key not in CMD:
                raise SyntaxError("bad run: %r" % key)
            out.append(CMD[key])
        i = j
    return out

def execute(code):
    tape = [0] * 30000
    ptr = 0
    ip = 0
    stack = []
    jump = {}

    for i, c in enumerate(code):
        if c == "[":
            stack.append(i)
        elif c == "]":
            if not stack:
                raise SyntaxError("unmatched ]")
            j = stack.pop()
            jump[i], jump[j] = j, i
    if stack:
        raise SyntaxError("unmatched [")

    while ip < len(code):
        c = code[ip]
        if c == ">":
            ptr += 1
            if ptr == len(tape):
                tape.append(0)
        elif c == "<":
            ptr -= 1
            if ptr < 0:
                raise RuntimeError("pointer < 0")
        elif c == "+":
            tape[ptr] = (tape[ptr] + 1) & 255
        elif c == "-":
            tape[ptr] = (tape[ptr] - 1) & 255
        elif c == ".":
            sys.stdout.buffer.write(bytes([tape[ptr]]))
            sys.stdout.buffer.flush()
        elif c == ",":
            b = sys.stdin.buffer.read(1)
            tape[ptr] = b[0] if b else 0
        elif c == "[" and tape[ptr] == 0:
            ip = jump[ip]
        elif c == "]" and tape[ptr] != 0:
            ip = jump[ip]
        ip += 1

if __name__ == "__main__":
    execute(parse(open(sys.argv[1], encoding="utf-8").read()))


See also

Categories