Amazing interpreter for the esoteric language brainf*ck written in Python.
🧩 Code Example: main.bf
# Increase decimal value two times, contains decimal 2.
++
# Increase decimal value more 68 times, now contains 70, equivalent to 'F' letter.
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
# This dot print the decimal number as ASCII letter.
.
# I am tired of this address space, I'm going to next because the decimal number is 0.
>
# Ok, on second thought, I would like to back..
<
# I will use a loop to decrease until it reaches 0.
[-]
⚙️ Command Usage
usage: brainfy [-h] FILE
An amazing interpreter for the esoteric language brainf*ck written in Python.
positional arguments:
FILE read BF script instructions from file
optional arguments:
-h, --help show this help message and exit
🌟 Currently Available Tokens
| Token | Description |
|---|---|
| # | Create safe comments (isn't multiline). |
| . | Print current decimal value as ASCII. |
| + | Increase +1 to current decimal value. |
| - | Decrease -1 to current decimal value. |
| > | Move pointer to next address space. |
| < | Move pointer to previous address space. |
[EXP] |
Repeat given expression while current decimal value is not 0. |
❤️ Contribute
Do you have any ideas? open an issue or make a pull request. You are welcome!
Metadata
Release files for brainfy 0.1.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| brainfy-0.1.4.tar.gz | 4.8 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| brainfy-0.1.4-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 11.2 kB
Release files / brainfy-0.1.4.tar.gz
| Download URL | brainfy-0.1.4.tar.gz |
|---|---|
| Size | 4.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
66d55543c64556e27e3ede55308be26d1bfcf33034c5ec4f740395cf738600fb
|
|
BLAKE2b-256 checksum How to use checksums |
7b5c5b12206ab8b73ed8b38bf79d693e8cf357db5def75bb6187c0d766faa58d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.8.3 CPython/3.12.7 Linux/6.6.50-2-lts
|
Release files / brainfy-0.1.4-py3-none-any.whl
| Download URL | brainfy-0.1.4-py3-none-any.whl |
|---|---|
| Size | 6.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
d7826076c9666865d79d14e7f1e8471ae21d7b77d04258294f3ce373dd996fd0
|
|
BLAKE2b-256 checksum How to use checksums |
bc09140d7bdd7fffe3b770a70ef6b597011ef9c8e69b0b566a6168a34c71697e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.8.3 CPython/3.12.7 Linux/6.6.50-2-lts
|