Skip to main content

A Brainfuck Jit Interpreter, with a simple frontend written in pygame

Project description

bfpy

bfpy is a Brainfuck Jit Interpreter written in python.

Usage

usage: bfpy.py [-h] [-o] [-i INPUT] [-f FILE] [-g] [-j] [-r]

brainfuck visualizer

optional arguments:
  -h, --help            show this help message and exit
  -o, --optimize        turn on to enable optimize, note that only if ir was enabled will this option make sense
  -i INPUT, --input INPUT
                        input to the program
  -f FILE, --file FILE  bf program
  -g, --graphic         turn on to enable visualize
  -j, --jit             turn on to enable jit(NOT compatible with graphic), with this on, you CANNOT pass input by argument, please use a pipe
  -r, --ir              turn on to enable ir

Note that the graphic part is written with pygame, quick-and-dirty, by me drunk. You cannot expect too much from it.

License

bfpy is under LGPLv3, which is chosen by asking this web site, for I am not good at licensing. If I made things wrong, please let me know.

Requirements

This thing uses peachpy and pygame. pygame can be installed directly via pip, while peachpy needs manual installation(i don't know why but pip just didn't work as expected), the installation guide can be found here.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

bfpy-1.0.0.tar.gz (28.5 kB view hashes)

Uploaded Source

Built Distribution

bfpy-1.0.0-py3-none-any.whl (32.0 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page