A lightweight pure python brainfuck interpreter
Project description
brainfuck.py
A simple lightweight pure python brainfuck interpreter.
Usage
Basic can be used by simply providing the command line tool with a brainfuck program. Either by piping it in, by passing it as an argument or by passing a file containing a program. As such these are all valid and equivalent uses:
$ python -m brainfuckpy '++++++++[>++++[>++>+++>+++>+<<<<-]>+>+>->>+[<]<-]>>.>---.+++++++..+++.>>.<-.<.+++.------.--------.>>+.>++.'
$ cat hello.bf | python -m brainfuckpy
$ python -m brainfuckpy hello.bf
If more control is required the package also gives access to the underlying functions. In general, passing the program to brainfuckpy.brainfuck
should cover 90% of usecases. The other 10% should be solveable by calling brainfuckpy.evaluate_processed
and changing the callbacks it uses (see documentation).
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for brainfuckpy-0.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3f1eb42276fced74d63121de2bc3bee8324a8df5bc7d2d3d67d89728b707ee1b |
|
MD5 | 829100b9935f23ff08b15dd258ea893d |
|
BLAKE2b-256 | f4d03b2a4c4f16d35ca037eb879e01e81be12e8ac4df68b9e2bc5b34b2aa9b42 |