Website Summary Files Commits Branches @commit @diff @stats
path: root / homework / 81333 / brainfsck / examples / input.bf
diff options
context:
space:
mode:
Commitadd56ccba064ed1012a00319834efeee222516a7 (patch)
Author
 Georgi Bojinov <georgi.bojinov@hotmail.com>
2018-11-19 08:57:03 +0200
Committer
 Martin Dobrev <martindobrev0@gmail.com>
2018-11-19 08:57:03 +0200
Files2cd6d694b04451d1d0bd9d222e366844f8c4daa9 /homework/81333/brainfsck/examples/input.bf
IPL-add56ccba064ed1012a00319834efeee222516a7.tar
IPL-add56ccba064ed1012a00319834efeee222516a7.tar.gz
IPL-add56ccba064ed1012a00319834efeee222516a7.zip
Parent12232668d931b0f3593807d2096a2c2f26844b0b (diff)
Add homework 3 - brainfsck interpreter (#55)
* Add brainfsck interpreter * Remove unused imports in Main * Add .gitignore * Fix example commands
1 files changed, 13 insertions, 0 deletions
-rw-r--r--homework/81333/brainfsck/examples/input.bf13
diff --git a/homework/81333/brainfsck/examples/input.bf b/homework/81333/brainfsck/examples/input.bf
new file mode 100644
index 0000000..12597fc
--- /dev/null
+++ b/homework/81333/brainfsck/examples/input.bf
@@ -0,0 +1,13 @@
+> +
+[ - >,>+<
+ ----- ----- ; minus 10
+ [ ; if enters means it is not a \n
+ +++++ +++++ ; restore prev value
+ <
+ ] >> ; moving forward
+]
+ ; numbers are 0 0 49 0 50 0 51
+ ; for input 123
+<<<<[<<] ; moving to the beginning
+>> ; reaching first char
+[.>>] ; just printing till end