Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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 🐍⚙

Awesome Lists containing this project

README

        


Pybfc


Pybfc - BranFuck compiler write in python



PyPI - Python Version


PyPI


License




test-pybfc


Upload Python Package




Code style: black


Table of Contents



  1. Requirements


  2. Installation


  3. Usage


  4. Examples


  5. Discussions

  6. Issues

  7. Donating

  8. License

## 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_PATH

Python 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 -> 0

Command -> '+', Loop -> 0
Address -> 1, Value -> 1

Command -> '+', Loop -> 0
Address -> 1, Value -> 2

Command -> '<', 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