From 574600ede12112c36fbab8277e9470f8cbe6dc4c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ricardo=20Fern=C3=A1ndez=20Serrata?= <76864299+Rudxain@users.noreply.github.com> Date: Fri, 23 Dec 2022 00:52:58 -0400 Subject: [PATCH] Create byte_inverter.bf --- algorithms/encoding/byte_inverter.bf | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 algorithms/encoding/byte_inverter.bf diff --git a/algorithms/encoding/byte_inverter.bf b/algorithms/encoding/byte_inverter.bf new file mode 100644 index 0000000..bce8c84 --- /dev/null +++ b/algorithms/encoding/byte_inverter.bf @@ -0,0 +1,17 @@ +[ +this inverter is intended to be fed with a raw `stdin` stream, +not finite data, nor text. + +to use with finite streams, +config the interpreter to crash the script +when there's no more `stdin` to consume. +] + +[`while true`] ++[> + , + +[>-<-] [bitwise-NOT current cell into next cell] + >. + [-] [cleanup, for future `stdout`] + < +<]