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)