Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

megabyte6/brainfuck-rust

Folders and files

NameName
Last commit message
Last commit date

Latest commit

History

30 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

About

A Brainf*ck interpreter & compiler written in rust.

Topics

Resources

License

Stars

Watchers

Forks

Contributors

Languages

AltStyle によって変換されたページ (->オリジナル) /