From 92fe68140bab92cb9ed23b56a6988671889cf360 Mon Sep 17 00:00:00 2001 From: "Danny Wang (ThePeeps191)" <74725787+ThePeeps191@users.noreply.github.com> Date: Sat, 5 Feb 2022 21:11:09 -0700 Subject: [PATCH 1/3] Update README --- README | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/README b/README index 3efd878..f72a298 100644 --- a/README +++ b/README @@ -4,15 +4,17 @@ Usage: ./brainfuck.py yourcode.bf You can use it as a module as well: - import brainfuck +```python +import brainfuck - sourcecode = """ - ++++++++++[>+++++++>++++++++++>+++>+<<<<-] - >++.>+.+++++++..+++.>++.<<+++++++++++++++. - >.+++.------.--------.>+.>. - """ +sourcecode = """ +++++++++++[>+++++++>++++++++++>+++>+<<<<-] +>++.>+.+++++++..+++.>++.<<+++++++++++++++. +>.+++.------.--------.>+.>. +""" - brainfuck.evaluate(sourcecode) +brainfuck.evaluate(sourcecode) +``` http://en.wikipedia.org/wiki/Brainfuck From 881226a74fe6a9818af16828f144046423ab4084 Mon Sep 17 00:00:00 2001 From: "Danny Wang (ThePeeps191)" <74725787+ThePeeps191@users.noreply.github.com> Date: Sat, 5 Feb 2022 21:11:29 -0700 Subject: [PATCH 2/3] Rename README to README.md --- README => README.md | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename README => README.md (100%) diff --git a/README b/README.md similarity index 100% rename from README rename to README.md From 9f88f6ac9ce4f78ddf63c75a49d92e67ab675672 Mon Sep 17 00:00:00 2001 From: "Danny Wang (ThePeeps191)" <74725787+ThePeeps191@users.noreply.github.com> Date: Sat, 5 Feb 2022 21:12:08 -0700 Subject: [PATCH 3/3] Update README.md --- README.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index f72a298..6cd93ce 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,9 @@ This is just a small Brainfuck interpreter written in Python. Usage: - ./brainfuck.py yourcode.bf +```batch +python brainfuck.py yourcode.bf +``` You can use it as a module as well: ```python