Skip to content

Brainf*ck interpreter written in rust.

License

Notifications You must be signed in to change notification settings

megabyte6/brainfuck-rust

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Brainf*ck-rust

About

Brainfuck-rust is a Brainf*ck interpreter I wrote to learn Rust. For more samples, see brain-lang's examples. They have some pretty cool programs on there!

Usage

  1. Follow the build steps.
  2. Run the executable through the command line using one of the following commands ():
    • On Linux/macOS:
      • ./target/release/bf run ./examples/mandelbrot.bf
      • ./target/release/bf build -o ./mandelbrot ./examples/mandelbrot.bf
      • ./target/release/bf help
    • On Windows:
      • .\target\release\bf.exe run .\examples\mandelbrot.bf
      • .\target\release\bf.exe build -o .\mandelbrot.exe .\examples\mandelbrot.bf
      • .\target\release\bf.exe help

Build

  1. Install rust.
  2. Clone this repository.
    • If you have Git installed, run git clone https://github.com/megabyte6/brainfuck-rust.git
    • Otherwise:
      1. Click on the "Code" button near the top of the page.
      2. Click on "Download ZIP".
      3. Extract zip folder.
  3. Navigate to the downloaded directory
  4. Run cargo build --release
  5. The compiled binary will be in ./target/release/. It will be named bf or bf.exe depending on your operating system.

License

The GNU General Public License version 3

Thanks