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.

ErrorLang

From Esolang
Jump to navigation Jump to search

ErrorLang is an esolang invented by User:None1 that is like Error.

Execution

Every program raises an error, the error message is Hello World!, then, both the program and the interpreter will be deleted.

Examples

Hello World

Any text can go here

This has side effects: It deletes the program and the interpreter!

Quine(Kind of)

Hello, World!

Interpreter

Python

import sys,os
program=sys.argv[1]
with open(program,'r') as f:
    code=f.read()
if 1:
    raise SyntaxError("Hello, World!")
    os.remove(sys.argv[0])
    os.remove(program)