Skip to content

hhhonzik/python-brainfuck

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

BrainFuck Interpretor


Brainfuck/Brainloller/Braincopter programming language interpreter.

Compatible with python3 and python2.7.


Installation

Clone this repository or download ZIP


Documentation

python3 brainx.py --help

Examples

Brainfuck example:

python3 brainx.py test_data/hello1.b

python3 brainx.py "++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++."

BrainLoller example:

python3 brainx.py -l test_data/HelloWorld.png

BrainCopter example:

python3 brainx.py -c test_data/helloworld.bc.png

B* Converter


Brainfuck/Brainloller/Braincopter programming language converter. Requires python2.7.


Documentation

This convertor use PNG-8 images.

python3 convert.py --help

Examples

*2bl

BrainFuck or BrainCopter to BrainLoller.

BrainFuck to BrainLoller example (bf2bl):

 python3 convert.py -t bf2bl -o hello.png ./test_data/hello1.b

BrainCopter to BrainLoller example (bc2bl):

  python3 convert.py -t bc2bl -o hello.png ./test_data/bc_helloworld.png

*2bc

BrainFuck or BrainLoller to BrainCopter, you need to specify source image and brainfuck or brainloller code

BrainFuck to BrainCopter example (bf2bc):

 python3 convert.py -t bf2bc -i test_data/temp.png -o hello2.png test_data/hello1.b

BrainLoller to BrainCopter example (bl2bc):

 python3 convert.py -t bl2bc -i test_data/temp.png -o hello3.png test_data/HelloWorld.png

*2bf

BrainLoller to BrainFuck example (bl2bf):

 python3 convert.py -t bl2bf test_data/HelloWorld.png

BrainCopter to BrainFuck example (bc2bf):

 python3 convert.py -t bc2bf test_data/TheLostKingdom.png

About

Brainfuck / BrainLoller / BrainCopter implementation

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages