A python bit my brain.
Project description
brainbite
A python bit my brain, so I sliced up the python into fine strips in retaliation.
Description
Brainfuck is widely known as an esoteric programming language. This package enables to write brainfuck-like code in python legal grammar.
This package also provides transpilation function from bf code to python one.
Demo
Though this code is strange, outputs "Hello World!" on stdout correctly.
from brainbite import Biter
_ = Biter()[::...][::...][::...][::...][::...][::...][::...][::...][:...]
_ = _[:...:...][::...][::...][::...][::...][:...][:...:...][::...][::...]
_ = _[:...:...][::...][::...][::...][:...:...][::...][::...][::...]
_ = _[:...:...][::...][...:...][...:...][...:...][...:...][...:][...::...]
_ = _[:...:...][::...][:...:...][::...][:...:...][...:][:...:...][:...:...]
_ = _[::...][:...][...:...][...::...][...:...][...:][...::...][:...:...]
_ = _[:...:...][:][:...:...][...:][...:][...:][:][::...][::...][::...]
_ = _[::...][::...][::...][::...][:][:][::...][::...][::...][:][:...:...]
_ = _[:...:...][:][...:...][...:][:][...:...][:][::...][::...][::...][:]
_ = _[...:][...:][...:][...:][...:][...:][:][...:][...:][...:][...:][...:]
_ = _[...:][...:][...:][:][:...:...][:...:...][::...][:][:...:...][::...]
_ = _[::...][:]()
To get this code, run below command.
$ python -m brainbite sample hello_world
Transpile
This module also works as transpiler.
$ python -m brainbite trans fizzbuzz.bf
For more information, view $ python -m brainbite --help
.
Install
This module is registered at PyPI. PyPI - brainbite
$ pip install brainbite
License
Author
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
brainbite-1.0.1.tar.gz
(5.5 kB
view hashes)
Built Distribution
brainbite-1.0.1-py3-none-any.whl
(15.2 kB
view hashes)
Close
Hashes for brainbite-1.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4671c38f7b9e1fdd8f2e263980ebb88e9ccf6ec5a0df4a54691d9daebc40c1f8 |
|
MD5 | 31b2072b7fc5f7ecf6b3bcfabf994b08 |
|
BLAKE2b-256 | 0ca8d12a6014ff2fa6182bde0a98ed34cc34e40eaadf2d70ce544fd15940bdae |