Skip to content

TheAwiteb/pybfc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

3 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

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

Installation

PyPi

$ pip3 install pybfc

GitHub

$ 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

>++<
Ξ» 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

++++++++[>++++[>++>+++>+++>+<<<<-]>+>+>->>+[<]<-]>>.
>---.+++++++..+++.>>.<-.<.+++.------.--------.>>+.>++.
Ξ» pybfc main.bf
Hello World!

Discussions

Question, feature request, discuss about pybfc here

Issues

You can report a bug from here

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 License