pyBrainfuck <-

Description

PyBrainfuck is a speed-optimized Brainfuck interpreter written in Python.

Brainfuck is an esoteric (joke) programming language which is Turing-complete (given enough memory) with only 8 op-codes (instructions). It was designed to allow for the smallest possible compiler.

Some other Python interpreters already exists for Brainfuck, but they are either obfuscated or awfully slow. PyBrainfuck has been optimized for speed by doing various preprocessing on the code such as pre-caching loop instructions, removing non-instructions, etc. PyBrainfuck also has configurable memory size, infinite loop protection and a somewhat spartan debugger.

PyBrainfuck can be used both as a stand-alone Brainfuck interpreter or as a python library. It can read from standard input or from a string (in library mode) and write to standard out or to a string buffer (in library mode).

Features

  • Speed optimized
  • User-definable memory limit
  • Infinite loop protection
  • Debugger
  • Stand-alone use or use as library
  • Brainfuck programs can read from STDIN or string buffer
  • Brainfuck programs can write to STDOUT or string buffer

Details

License:MIT License
Language:Python
Current status:Beta
Development activity:Active

Documentation

Requirements

  • Python

Downloads

Unstable

StatusVersionRelease dateTypeDownload
Betav0.206 July 2008tar.gzpybrainfuck-0.2.tar.gz
Unstablev0.122 March 2008tar.gzpybrainfuck-0.1.tar.gz

Other information

Copyright © Ferry Boender, 2003 - 2009 Edit Info