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.

ItOi

From Esolang
Jump to navigation Jump to search

ItOi or Input to Output instantly is a joke esoteric programming language by Grs (talk) that only contains two command.

Commands

Command
Command Description Example
ItOi Takes input from the user and prints it instantly ItOi
repeat Repeats the last command infinity times. ItOi(newline)repeat

Code

Cat program
ItOi
repeat
An ending cat program
ItOi

Implementation

Python implementation by Grs (talk):

code = []
userinput = ""
while userinput != "exit":
    userinput = input("> ")
    if userinput == "run":
        line = 0
        while line < len(code):
            if code[line] == "ItOi":
                print(input())
            elif code[line] == "repeat":
                line -= 2
            line += 1
        code = []
    else:
        code.append(userinput)