Skip to main content

Interpreter for the esoteric language brainf*ck written in Python.

Project description



Amazing interpreter for the esoteric language brainf*ck written in Python.

GitHub Actions Workflow Status GitHub License

🧩 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!

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

brainfy-0.1.3.tar.gz (4.7 kB view details)

Uploaded Source

Built Distribution

brainfy-0.1.3-py3-none-any.whl (6.3 kB view details)

Uploaded Python 3

File details

Details for the file brainfy-0.1.3.tar.gz.

File metadata

  • Download URL: brainfy-0.1.3.tar.gz
  • Upload date:
  • Size: 4.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.3 CPython/3.12.6 Linux/6.11.1-arch1-1

File hashes

Hashes for brainfy-0.1.3.tar.gz
Algorithm Hash digest
SHA256 376d773a19d54fa14cf78d71cc82f3d39c08921c1fcffe833766af465b39e3f5
MD5 2021c0de2eb06a3dbb9361098082943c
BLAKE2b-256 c3d1ac6359434e837f575254fc37f2ba675d966e77a63308eae658d92fbae709

See more details on using hashes here.

File details

Details for the file brainfy-0.1.3-py3-none-any.whl.

File metadata

  • Download URL: brainfy-0.1.3-py3-none-any.whl
  • Upload date:
  • Size: 6.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.3 CPython/3.12.6 Linux/6.11.1-arch1-1

File hashes

Hashes for brainfy-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 0624479b10843c44b74057d63defb117723818d1cb15f7e6f1e2d1da9608ee8e
MD5 3bbfecc7c268e500fd6d2bf11698ee59
BLAKE2b-256 9befb1a778a613903343b74dd2422be2c51b53776876a6a4f3d7e920e78a43f7

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page