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