No description
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Jonathan Arnett 7de006fb92 Remove possibility of lexer failure
Brainfuck.org says all characters that are not commands are ignored
2024-04-24 17:39:44 -04:00
src Remove possibility of lexer failure 2024-04-24 17:39:44 -04:00
.gitignore Initial Commit 2021-09-20 03:48:10 -04:00
Cargo.lock Use rustyline for realine emulation 2021-09-25 00:49:22 -04:00
Cargo.toml Use rustyline for realine emulation 2021-09-25 00:49:22 -04:00
README.md Update TODO list in README to remove completed item 2024-04-24 16:29:31 -04:00

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 <filename> 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) 😉