Skip to content

Latest commit

 

History

History
35 lines (24 loc) · 694 Bytes

README.md

File metadata and controls

35 lines (24 loc) · 694 Bytes

pybf

pybf contains a Python interpreter and a C transpiler/compiler for brainfuck.

Installation

pip install ng.pybf

Usage

CLI

usage: pybf [-h] [-p] [-c] [--compile] [-r] [filename]

Python interpreter and C transpiler/compiler for brainfuck

positional arguments:
  filename      path to bf file; leave blank to read from stdin

options:
  -h, --help    show this help message and exit
  -p, --python  use Python to interpret and run
  -c            transpile to C
  --compile     compile the transpiled C file
  -r, --run     execute

You may also call it as a Python module

python3 -m pybf [-h] [-p] [-c] [--compile] [-r] [filename]