https://github.com/j3rn/jbi
J3RN's Brainf*ck Interpreter
https://github.com/j3rn/jbi
Last synced: over 1 year ago
JSON representation
J3RN's Brainf*ck Interpreter
- Host: GitHub
- URL: https://github.com/j3rn/jbi
- Owner: J3RN
- Created: 2021-09-20T07:50:17.000Z (almost 5 years ago)
- Default Branch: main
- Last Pushed: 2024-04-24T21:40:29.000Z (over 2 years ago)
- Last Synced: 2025-02-07T09:13:10.091Z (over 1 year ago)
- Language: Rust
- Size: 32.2 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# J3RN's Brainf*ck Interpreter (JBI)
```
++++++++++[>++++++++++>+++++++++++>+++<<<-]>++++.---.>--..+++.>+++.
```
This is my first ever Rust project, so the code is probably really bad. Don't `@` me.
## Building
1. Clone the repository
2. Run `cargo build`
## Running
You have two options:
1. `cargo run`
You will be presented with a `jbi>` prompt. The state is retained across inputs to the REPL, so try to remember what the state of your array looks like.
2. `cargo run `
The file specified will be executed by the JBI interpreter.
## TODO
- [ ] Don't immediately give up if a loop is unclosed in REPL. Give the user the opportunity to close it.
- [ ] Tests, probably.
- [ ] J3RN's Brainf*ck Compiler (JBC) :wink: