This repository contains a Malbolge interpreter written in Python and a simple "Hello, World!" program in Malbolge.
malbolge.py
: The Python-based Malbolge interpreter.helloworld.mal
: The Malbolge "Hello, World!" program.
To run the Malbolge "Hello, World!" program, follow these steps:
- Ensure you have Python 3 installed on your system. You can check this by running:
python3 --version
- Clone this repository and navigate to the directory:
git clone <repository-url> cd malbolge
- Ensure the helloworld.mal file exists in the directory:
ls
- Run the Malbolge interpreter with the "Hello, World!" program:
python3 malbolge.py helloworld.mal
You should see the output "Hello, World!" printed to the terminal.
The content of helloworld.mal is as follows:
(=<`#9]~6ZY32Vw0/@;:o
another way to code Hello, World in malbolge is:
('&%:9]!~}|z2Vxwv-,POqponl&%$#"
The Python-based Malbolge interpreter (malbolge.py) is designed to interpret and run Malbolge programs. The interpreter reads the Malbolge code from a file and executes it.
To use the interpreter with any Malbolge program, run:
python3 malbolge.py <filename>
Replace with the path to your Malbolge program file.
This project is licensed under the MIT License.