Skip to content

Small program that can compile Brainfuck to Rust and run it.

Notifications You must be signed in to change notification settings

Vlamonster/brainfuck_to_rust

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 

Repository files navigation

How to Run

# Compile and run the brainfuck from path. Results will be put in output folder.
cargo run --release -- <path> -cr
cargo run --release -- examples/sierpinski.bf -cr

# Just run (if output already exists) or compile.
cargo run --release -- <path> -r
cargo run --release -- <path> -c

Included Examples

  • add.bf
    • Example from Wikipedia that adds two cells together.
  • hello_world.bf
    • Example from Wikipedia that prints out "Hello World!".
  • sierpinski.bf
    • Example found here that draws a Sierpinski triangle with code in the shape of a Sierpinski triangle.
  • tictactoe.bf
    • Example from Daniel B. Cristofani (2020) that lets the user play a game of tic-tac-toe.
  • mandelbrot.bf
    • Example from Erik Bosman that draws the Mandelbrot set. I suggest compiling and running separately.

About

Small program that can compile Brainfuck to Rust and run it.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages