Skip to content
Sign upLog in
← Back to Community

Python Brainf**k Interpreter v1.1.2 (08.16.)

Profile icon
Babbel

Just finished my Brainf**k interpreter, yay! :D

I hope you like it!

BF tutorial: https://learnxinyminutes.com/docs/bf/ (don't worry, it's easy to learn ;)
Text to code: https://andrew.hedges.name/experiments/brainf_cker/

hello_world.b copied from https://de.wikipedia.org/wiki/Brainfuck#Hello_World! (german)

Known issues:

  • If your text consists of multiple lines it might not print the last line. In this case just add an empty line at the end of your text.
  • If your code includes a lot of loops, the compiler may freeze (Should work now. If not, please tell me)

UPDATE 1.1:

It's finally working now! \(^o^)/

Due to my stupidity, there was a problem in the code that caused the compiler to get stuck in loops.

UPDATE 1.1.1:

  • Tutorial added
  • Colors added
  • Debug warning added

UPDATE 1.1.2:

  • Debug pauses added
  • Faulty error messages corrected
  • Debug messages improved

Cannot infer image mime type

Voters
Profile icon
SLMJ
Profile icon
programmeruser
Profile icon
masteryongxian
Profile icon
timmy_i_chen
Profile icon
CSharpIsGud
Profile icon
amasad
Profile icon
Babbel
Comments
hotnewtop
Profile icon
k4t3xpl0si0n

Cannot infer image mime type

Profile icon
HappyFakeboulde

I think this is actually an interpreter, not a compiler

Profile icon
Babbel

@HappyFakeboulde
point for you

Profile icon
CSharpIsGud

Looks good, I made one of these in C# but i don't remember it being reliable

Profile icon
Babbel

@CSharpIsGud
thank you! you can run it now if you want. it has still some bugs, but it works :P

Profile icon
CSharpIsGud

@Babbel
A brainf interpreter is probably something everyone has done my project has me angry and its the first time ive given up on fixing something, so i think ill make another one :/ I hate red

Profile icon
amasad

Ah cool and simple. I just ported mine that I wrote 7 years ago to Repl.it and made it modern JavaScript. Runs on NodeJS

https://repl.it/@amasad/bfjs

Profile icon
Babbel

@amasad
thanks :) it's working now. i think i will add colors too