/rustfuck

Currently, a Brainfuck to C translator written in Rust. In the future, a Brainfuck interpreter written in Rust.

Primary LanguageRustApache License 2.0Apache-2.0

rustfuck

Currently, a Brainfuck to C translator written in Rust. In the future, a Brainfuck interpreter written in Rust.

Build Status on Travis Build Status on AppVeyor Codecov

Usage

Translate from Brainfuck to C, and compile (on Linux, using GCC):

$ cargo run --release -- --output hello.c examples/hello.bf
$ gcc -O3 -o hello hello.c
$ ./hello
Hello World!

Run cargo run --release -- --help for more information on parameters.

Acknowledgements & Sources

Idea and first implementation taken from Asmoaesl:

Java implementation by Daniel Harper:

License

rustfuck is licensed under either of

at your option.

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.