https://github.com/k10-k10/brainfuck-interpreter
Interpreter of Brainf**k
https://github.com/k10-k10/brainfuck-interpreter
brain cpl linux zsh
Last synced: 26 days ago
JSON representation
Interpreter of Brainf**k
- Host: GitHub
- URL: https://github.com/k10-k10/brainfuck-interpreter
- Owner: K10-K10
- License: mit
- Created: 2025-07-10T03:58:30.000Z (11 months ago)
- Default Branch: main
- Last Pushed: 2025-07-12T08:49:41.000Z (11 months ago)
- Last Synced: 2025-07-12T10:22:25.543Z (11 months ago)
- Topics: brain, cpl, linux, zsh
- Language: C++
- Homepage:
- Size: 19.5 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Brainfuck-interpreter
## Char list
| char | command |
| ---- | -------------- |
| `+` | increment |
| `-` | decrement |
| `.` | print |
| `,` | input |
| `[` | loop begin |
| `]` | loop end |
| `>` | right bit sift |
| `<` | left bit sift |
[reference from wikipedia](https://en.wikipedia.org/wiki/Brainfuck)
## Install
1. Clone this repository.
- ssh
```bash
git clone git@github.com/K10-K10/Brainfuck-interpreter
```
- https
```bash
git clone https://github.com/K10-K10/Brainfuck-interpreter
```
2. Build
Build code
```bash
g++ main.cpp -o bf
```
3. Copy `bf` in `bin`
```bash
sudo cp bef ~/.local/bin/bf
```
4. Add path in ~/.zshrc
```bash
export PATH="$HOME/.local/bin:$PATH"
```
## Run
```bash
bf file.bf
```