Bfbf

From Esolang
Jump to navigation Jump to search

BFBF (Brainfuck Binary Format) is an encoding for efficient storage of brainfuck code devised by User:Nick-1666 in 2022.

Flags & Usage

Usage is as follows:
bfbf <input file path> <flags>
Note: flags can be chained with short names: e.g (-dl)

Flags

  • -d (--debug) Shows a debug output with what characters are being written
  • -l (--lossy) Uses a lossy encoding that removes newlines and tabs.
  • -h (--help) Prints help information
  • -V (--version) Prints the current version of the BFBF encoder/decoder

Output

Upon encoding, BFBF shows the saving space as opposed to an ascii equivalent before outputting with a `.BFBF` extension. Decoding a `.BFBF` file will result in the extension `.d.bf` to show that it is decoded and to not overwrite the original file. All files will be named after the input file name.

Implementations