https://github.com/mohamedmetwalli5/brainfuck-interpreter
🧠Brainfuck is an esoteric programming language created in 1993 by Urban Müller. So i made a "Brainfuck" interpreter using Java.
https://github.com/mohamedmetwalli5/brainfuck-interpreter
brainfuck interpreter java
Last synced: 8 months ago
JSON representation
🧠Brainfuck is an esoteric programming language created in 1993 by Urban Müller. So i made a "Brainfuck" interpreter using Java.
- Host: GitHub
- URL: https://github.com/mohamedmetwalli5/brainfuck-interpreter
- Owner: MohamedMetwalli5
- License: apache-2.0
- Created: 2021-12-13T21:13:07.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2021-12-15T22:42:30.000Z (almost 4 years ago)
- Last Synced: 2025-01-08T21:58:39.738Z (9 months ago)
- Topics: brainfuck, interpreter, java
- Language: Brainfuck
- Homepage:
- Size: 47.9 KB
- Stars: 1
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README


_If you like this project, please leave me a star._ ★
# Brainfuck Interpreter
## About The Language
Brainfuck is an esoteric programming language created in 1993 by Urban Müller.
It is notable for its extreme minimalism, the language consists of only eight simple commands, a data pointer and an instruction pointer. While it is fully Turing complete, it is not intended for practical use, but to challenge, and amuse programmers. Brainfuck simply requires one to break commands into microscopic steps.
The language's name is a reference to the slang term brainfuck, which refers to things so complicated or unusual that they exceed the limits of one's understanding.* `>` = Increment the data pointer
* `<` = Decrement the data pointer
* `+` = Increment (increase by one) the byte at the data pointer
* `-` = Decrement (decrease by one) the byte at the data pointer
* `.` = Output the byte at the data pointer
* `,` = Accept one byte of input, storing its value in the byte at the data pointer
* `[` = If the byte at the data pointer is zero, then instead of moving the instruction pointer forward to the next command, jump it forward to the command after the matching `]` command
* `]` = If the byte at the data pointer is nonzero, then instead of moving the instruction pointer forward to the next command, jump it back to the command after the matching `[` command
## User Manual
You have two options :
1) `option = 1` : converting a text file to a brainfuck file that will be stored as `TextToBrainfuck.bf`.
2) `option = 2` : converting a brainfuck file to a text file that will be stored as `BrainfuckToText.txt`.