PraneshASP / brainfuck-rs

A brainfuck interpreter using Rust

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Overview:

A minimal brainfuck interpreter in Rust. It was built purely for fun.

Note

Brainfuck, language itself, is a Turing-complete language created by Urban Müller. The language only consists of 8 operators, yet with the 8 operators, <>+-[],. you are capable of writing almost any program you can think of.

To learn more:

Getting started:

  • Clone this repo and cd into it:
git clone https://github.com/PraneshASP/brainfuck-rs.git && cd brainfuck-rs
  • Run example:
cargo run ./examples/hello-world.bf

Example:

$ > cargo run ./examples/sierpinski.bf

                               *
                              * *
                             *   *
                            * * * *
                           *       *
                          * *     * *
                         *   *   *   *
                        * * * * * * * *
                       *               *
                      * *             * *
                     *   *           *   *
                    * * * *         * * * *
                   *       *       *       *
                  * *     * *     * *     * *
                 *   *   *   *   *   *   *   *
                * * * * * * * * * * * * * * * *

About

A brainfuck interpreter using Rust


Languages

Language:Rust 100.0%