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.

Of.

From Esolang
Jump to navigation Jump to search

Of. is joke esoteric language with 3 commands

  • F — Increment current cell by 0.5
  • . — repeat last command 3 times
  • o — brainfuck >

Examples

XKCD Random Number

Generating an XKCD random number is not feasible, but we can set the current cell to 4:

FFFFFFFF

Interpreters

Python

tape = [0.0]
pointer = 0
last_command = None

code = input()

def execute(command):
    global pointer

    if command == 'F':
        tape[pointer] += 0.5
    elif command == 'o':
        pointer += 1
        if pointer >= len(tape):
            tape.append(0.0)

for char in code:
    if char in ('F', 'o'):
        execute(char)
        last_command = char
    elif char == '.' and last_command:
        for _ in range(3):
            execute(last_command)