From 41bec2ebe5cf99bbd73d9f5f15c913466cfa494c Mon Sep 17 00:00:00 2001 From: aaron Date: Sun, 19 Sep 2021 23:42:49 +0200 Subject: [PATCH] initial commit --- .gitignore | 5 +++++ Cargo.toml | 8 ++++++++ README.md | 12 +++++++++++- src/main.rs | 3 +++ 4 files changed, 27 insertions(+), 1 deletion(-) create mode 100644 Cargo.toml create mode 100644 src/main.rs diff --git a/.gitignore b/.gitignore index 3ca43ae..193d30e 100644 --- a/.gitignore +++ b/.gitignore @@ -14,3 +14,8 @@ Cargo.lock # MSVC Windows builds of rustc generate these, which store debugging information *.pdb + + +# Added by cargo + +/target diff --git a/Cargo.toml b/Cargo.toml new file mode 100644 index 0000000..3b2779c --- /dev/null +++ b/Cargo.toml @@ -0,0 +1,8 @@ +[package] +name = "rbfckr" +version = "0.1.0" +edition = "2018" + +# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html + +[dependencies] diff --git a/README.md b/README.md index a861150..2c5a8ca 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,13 @@ # rbfckr -Rust version of my brainfuck interpreter \ No newline at end of file +A simple to use brainfuck interpreter with built in debugger written in Rust. +This is a reimplementation of my brainfuck interpreter [bfckr](https://github.com/id101010/bfckr). + +# Usage +``` +Usage: ./bfckr [OPTION] +-h Show this help. +-d Enable debugger. +-f Execute brainfuck code given as file. +-e Execute brainfuck expression given as argument. +``` diff --git a/src/main.rs b/src/main.rs new file mode 100644 index 0000000..e7a11a9 --- /dev/null +++ b/src/main.rs @@ -0,0 +1,3 @@ +fn main() { + println!("Hello, world!"); +}