https://github.com/dpbm/brainfuck-interpreter
A python based brainfuck interpreter
https://github.com/dpbm/brainfuck-interpreter
brainfuck brainfuck-interpreter cli interpreter python terminal
Last synced: 18 days ago
JSON representation
A python based brainfuck interpreter
- Host: GitHub
- URL: https://github.com/dpbm/brainfuck-interpreter
- Owner: Dpbm
- Created: 2022-10-06T23:03:59.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2024-01-25T17:27:26.000Z (almost 2 years ago)
- Last Synced: 2025-01-19T18:51:55.037Z (12 months ago)
- Topics: brainfuck, brainfuck-interpreter, cli, interpreter, python, terminal
- Language: Python
- Homepage: https://dpbm.github.io/brainfuck-interpreter/
- Size: 1000 Bytes
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
# A python interpreter for [Brainfuck](https://pt.wikipedia.org/wiki/Brainfuck)
If you don't know Brainfuck, please check [this video from Fireship](https://www.youtube.com/watch?v=hdHjjBS4cs8) and check [this gist](https://gist.github.com/roachhd/dce54bec8ba55fb17d3a).
This project is based on a compiler made with Java that you can see [here](https://www.geeksforgeeks.org/brainfuck-interpreter-java/)
## how to use
```bash
chmod +x interpreter
```
write a .bf file, like this
```
> test.bf
>+++++++++[<++++++++>-]<.>+++++++[<++++>-]<+.+++++++..+++.[-]>++++++++[<++++>-] <.>+++++++++++[<++++++++>-]<-.--------.+++.------.--------.[-]>++++++++[<++++>- ]<+.[-]++++++++++.
```
and run
```bash
./interpreter file.bf
```