Hello++++

From Esolang
Jump to navigation Jump to search

Hello++++ is a simple programming language, which has one command:

  • Hello World prints "Hello World".

Hello++++ is fully Non-Turing-complete, that's why programmers love it! Hello++++ is also easy to learn.

Hello++++ is based on Hello++ which is based on Hello. Hello++++ is different from Hello++ because it interprets the program like input, which makes it able to create a cat-program. However, it has a longer command for "Hello World", making the code for it longer than in Hello++ and Hello, which makes it worse for code golf competitions.

Examples

Hello World

The "Hello World"-program is written

Hello World

Quine

The Quine-program is simply written

Hello World

(because it prints itself)

Cat

The Cat-program is simply written

Hello World

(because Hello++++ uses the program as input)

Turing completeness

Nope.

Interpreters

One of the shortest interpreters for Hello++++ is the echo command, which comes in the package on all Linux systems. EDIT: Works on Windows too!

$ echo Hello World
Hello World

And of course Zayne has to make an interpreter for it!

i = input("Enter Command: ") 
if i != 'Hello World':
	print("")
else:
	print("Hello World")

And of course User:A can make another interpreter for it!!

i=input(">")
print(i)

And of course User:Not Applicable can make another interpreter for it aswell! This one works in bash.

#!/bin/bash
read PROGRAM
if \[ "$PROGRAM" = "Hello, World!" \]; then echo $PROGRAM
fi

User:ChuckEsoteric08 made a shortest interpreter! This works in ///

Hello World

User:SpaceByte's Batch Interpreter!11!!1 (@echo off and pause/pause>nul are optional. You could remove them and run it through cmd.)

set /p echo=
echo  Hello World
pause>nul

And User:None1's Powershell interpreter!

if((read-host)-eq"Hello World"){write-host "Hello World"}