Skip to content

Python interpreter and a C transpiler/compiler for brainfuck

License

Notifications You must be signed in to change notification settings

edward-martyr/pybf

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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]