Skip to content

This is a brainfuck compiler written in python that can either compile/run the brainfuck langauge in bytecode or transpile it to golang

License

Notifications You must be signed in to change notification settings

Mr-Zombii/BrainFuck-Compiler

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Brain Fuck Compiler

This is a basic implementation of the Esolang BrainFuck on a bytecode virtual machine that can be transpiled to Golang, Python C. If you want to see this but recreated on Scratch check here. If you want the faster runtime check here.

# Transpile your brainfuck program to Go
py bfc.py "File Here.bf" go
# Transpile your brainfuck program to Python
py bfc.py "File Here.bf" py
# Transpile your brainfuck program to C
py bfc.py "File Here.bf" c

# Run your brainfuck program in ther bytecode vm.
# sadly the bytecode vm is very slow for big programs
# and transpiling is recommended.
py bf.py "File Here.bf"



Hello world.bf
++++++++++[>+++++++>++++++++++>+++>+<<<<-]>++.>+.+++++++..+++.>++.<<+++++++++++++++.>.+++.------.--------.>+.>.

Output

Hello World!

About

This is a brainfuck compiler written in python that can either compile/run the brainfuck langauge in bytecode or transpile it to golang

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages