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`] + < +<]