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.

Error

From Esolang
Jump to navigation Jump to search

Error is an esolang by User:None1, it is inspired by ErrorFull, but it's much simpler.

Execution

Every program is valid, while every program raises an error:

Error: You attempt to write a program in this esolang

and deletes the program and the interpreter.

Examples

Quine

Error: You attempt to write a program in this esolang

Interpreter

Python

import os,sys
inter,prog=sys.argv[0],sys.argv[1]
print('Error: You attempt to write a program in this esolang')
os.remove(inter)
os.remove(prog)

Python(Another version by PSTF)

import os,sys
inter,prog=sys.argv[0],sys.argv[1]
raise SyntaxError("You attempt to write a program in this esolang")
os.remove(inter)
os.remove(prog)

See also