Do nothing

From Esolang
Jump to navigation Jump to search

Do nothing is a very simple esolang created by User:Evylah.

Code execution

An interpreter takes in the code, and does absolutely nothing. Does not print anything, write a file, and cannot take input. This language solves the Halting Problem and thus is not Turing-complete.

Examples

Do nothing


This is basically just one big no-op.

Quine


Obviously I had to do a quine at some point. The code is 0 bytes, it outputs 0 bytes.

Implementation

An implementation must accept Do nothing code.

Python 3.x

code = input("Code? ")
def parse(code):
    pass
parse(code)

><>

>i:01-=?v00.
        >0r>:~?v;
           ^   <

Do nothing

Since Do nothing requires to take in code, a self-interpreter is not possible.

brainfuck

,[,]

Takes all code until a 0 is provided. LF on input end will not work.

-Output

i~