English | 简体中文
A Hello World program written in many programming languages.
You can compile/run directly WITHOUT changing the source code.
See the languages list.
Firstly, you usually need to change the extension of "hello.any".
Although some compilers/interpreters (such as CPython) do not require changing the file extension, most still require the file to have the correct extension.(The extension ".any" means that any extension can be used)
The file extension you should change depends on the situation.
For example, in Linux, if you want to compile it as a C language source code file, you can use:
mv hello.any hello.c
You can change it in any way you want.
Now you can compile/run it. Here are some examples:
python3 hello.py
gcc -o hello hello.c
g++ -o hello hello.cpp
brainfuck hello.bf
python3 -m __hello__ hello.any
python3 -m __hello__ hello.any
python3 -m __hello__ hello.any
So easy, isn't it?
If the output is not "Hello, world!", please report a bug. Thanks!
Maybe you don't have any esolang interpreters installed.
But don't be worried, you can still run it with test test-script.py
!
There is a test-script.py
file in the root directory of this project.
It can help you run all the languages we support. So cool right?
To run it, just do like this:
shell git clone (-b dev) https://github.com/BaiChuanByte/HelloWorld.git
cd
to the root directory of this project. pip3 install -r requirements.txt
or pip install -r requirements.txt
python test-script.py
or python3 test-script.py
You need to install the required interpreters or compilers before running the test script:
If you want to know more about test-script, see TEST-SCRIPT.md.
This programm is licensed under the terms of the WTFPL (DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE).
See license.
If you have any questions or suggestions, feel free to contact me at my email: baichuanbyte@tuta.io.
Have fun!