https://github.com/d3cryptofc/brainfy
πΊπΈ Amazing interpreter for the esoteric language brainf*ck written in Python. π§
https://github.com/d3cryptofc/brainfy
brainfuck brainfuck-interpreter esoteric-language interpreter python
Last synced: 6 months ago
JSON representation
πΊπΈ Amazing interpreter for the esoteric language brainf*ck written in Python. π§
- Host: GitHub
- URL: https://github.com/d3cryptofc/brainfy
- Owner: d3cryptofc
- License: mit
- Created: 2024-10-02T05:21:52.000Z (8 months ago)
- Default Branch: main
- Last Pushed: 2024-10-03T00:53:36.000Z (8 months ago)
- Last Synced: 2024-11-07T20:12:01.721Z (7 months ago)
- Topics: brainfuck, brainfuck-interpreter, esoteric-language, interpreter, python
- Language: Python
- Homepage: https://pypi.org/project/brainfy
- Size: 51.8 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
Amazing interpreter for the esoteric language brainf*ck written in Python.#### π§© Code Example: `main.bf`
```python
# 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] FILEAn amazing interpreter for the esoteric language brainf*ck written in Python.
positional arguments:
FILE read BF script instructions from fileoptional 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!