Empty Program

From Esolang
Jump to navigation Jump to search

Empty Program is a program that doesn't do anything.

In Python, you just write a null program to do it. But in C++, you need to write a main function with no operation except return 0.

Python

# NOP

C++

int main()
{
    return 0;
}

Java

public class EmptyProgram(){
    public static void main(){
        // TODO
    }
}

Pascal

begin
  // TODO
end
.

C

void main(){}

PHP


<?php
?>

Go

package main()

func main(){
  // TODO
}

C♯ Mono

using System;

public class Empty(){
    private static void Main(){
        // TODO
    }
}

JavaScript(Node.JS)

process.exit()

Python2

# No Code

VNL

# No Code

Zerro

`No Code`

Batch File

@echo off
GOTO end
:end

Assembly Language

assume cs:codesg
codesg segment
start:
    mov cx, 0
    jcxz end
end:
    mov ah, 4ch
    int 21h
codesg ends
end start

Rust

fn main(){}

VB Mono

Imports System

Module NOP
    Sub Main()
        
    End Sub
End Module

See also