My Brainfu*k Repo

Basically wanted to create something with Brainfu*k but realized that with the smol brain I have, I need to see the cell values real-time so that I can debug. So instead of writing BF programs, I started writing an IDE for myself. Currently I wrote the interpreter only on Python and trying to figure out and working on the IDE with realtime memory array update while someone is coding.

Whatever, since this repo is not only about the IDE but also whatever I do related to brainfu*k will be uploaded in this repo.

How to use the interpreter-

  1. Download the interpreter.py file.
  2. Use/Modify the following code snippet-
    from interpreter import I
    code = "++++++++[>++++[>++>+++>+++>+<<<<-]>+>+>->>+[<]<-]>>.>---.+++++++..+++.>>.<-.<.+++.------.--------.>>+.>++."
    i = I(code)
    i.interprete()
    # Hello world!
    i.change_code("-[------->+<]>--.[--->+<]>++..-----------.--.[--->+<]>+++.--[->+++<]>.--[--->+<]>-.--[->++++<]>-.--------.+++.------.--------.-[--->+<]>.")
    i.interprete()
    # Goodbye world!

Plans-

  • Creating an interpreter
  • Optimize it further
  • Create the IDE
  • Write some actual BF program
  • Optional: Anything else
GitHub - pptx704/Brainfuck at pythonawesome.com
Would upload anything I do with/related to brainfuck - GitHub - pptx704/Brainfuck at pythonawesome.com