Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/theawiteb/pybfc
Pybfc - BranFuck compiler write in python 🐍⚙
https://github.com/theawiteb/pybfc
bfc branfuck cli
Last synced: 2 days ago
JSON representation
Pybfc - BranFuck compiler write in python 🐍⚙
- Host: GitHub
- URL: https://github.com/theawiteb/pybfc
- Owner: TheAwiteb
- License: agpl-3.0
- Created: 2022-01-22T17:06:14.000Z (almost 3 years ago)
- Default Branch: master
- Last Pushed: 2022-01-22T18:37:36.000Z (almost 3 years ago)
- Last Synced: 2024-12-02T10:53:25.323Z (20 days ago)
- Topics: bfc, branfuck, cli
- Language: Python
- Homepage:
- Size: 21.5 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
Table of Contents
## Requirements
* [Python](https://Python.org/) >= 3.8
## Installation
### PyPi
```bash
$ pip3 install pybfc
```### GitHub
```bash
$ git clone https://github.com/TheAwiteb/pybfc
$ cd pybfc
$ python3 setup.py install
```## Usage
```
Usage: pybfc [OPTIONS] FILE_PATHPython BranFuck Compiler 🐍⚙
Arguments:
FILE_PATH BranFuck path to execute it. [required]Options:
-d, --debug Enable debugging with execution.
-V, --version Print Pybfc version and exit.
--help Show this message and exit.
```## Examples
### Debug
```main.bf```
```BranFuck
>++<
```
```bash
λ pybfc --debug main.bf
Command -> '>', Loop -> 0
Address -> 1, Value -> 0Command -> '+', Loop -> 0
Address -> 1, Value -> 1Command -> '+', Loop -> 0
Address -> 1, Value -> 2Command -> '<', Loop -> 0
Address -> 0, Value -> 0
```### Hello World
```main.bf```
```BranFuck
++++++++[>++++[>++>+++>+++>+<<<<-]>+>+>->>+[<]<-]>>.
>---.+++++++..+++.>>.<-.<.+++.------.--------.>>+.>++.
```
```bash
λ pybfc main.bf
Hello World!```
## Discussions
Question, feature request, discuss about pybfc [here](https://github.com/TheAwiteb/pybfc/discussions)## Issues
You can report a bug from [here](https://github.com/TheAwiteb/pybfc/issues/new?assignees=&labels=bug&template=bug.md)## Donating
> Note: These addresses are for BEP20 tokens| Currency | Address |
| ---------------------|------------------------------------------------ |
| Binance **BNB**| ```0x4ab0974c7dfcdcdf24d8323a93b061d41e9cf3f0```|
| Binance USD **BUSD** | ```0x4ab0974c7dfcdcdf24d8323a93b061d41e9cf3f0```|
| Tether **USDT** | ```0x4ab0974c7dfcdcdf24d8323a93b061d41e9cf3f0``` |
| Bitcoin **BTC** | ```0x4ab0974c7dfcdcdf24d8323a93b061d41e9cf3f0```|
| Bitcoin Cash **BCH**| ```0x4ab0974c7dfcdcdf24d8323a93b061d41e9cf3f0```|## License
[GNU Affero General Public Version 3](https://www.gnu.org/licenses/agpl-3.0.en.html) License