/BF2SB-SB3

Brainfuck to SmileBASIC 3 converter.

Primary LanguagexBaseMIT LicenseMIT

BF2SB v2.2.2 (SB3)

NOTE: This version of BF2SB is now unsupported. Check out the updated SmileBASIC 4 version here: https://new.smilebasicsource.com/pages/299

SmileBASIC Source page: https://smilebasicsource.com/page?pid=1489

This is a tool that converts brainfuck code to SmileBASIC 3 code. It features a code minifier (which allows for indentation and comments for source code) and an optimizer, as well as optimization and indentation for the converted code. Three brainfuck programs are included in this project as examples: a hello world program, a cat program (displays input), and a program that displays square numbers. The project also includes a debug program for checking the bit width.

If you want to learn more about Brainfuck, go here: https://esolangs.org/wiki/Brainfuck

Features added in v2.0:

  • Brainfuck code can now be optimized (on by default).
  • Updated converted code optimization to support more sets of code.
  • Heavily improved indentation. It is now done alongside the conversion process and is a lot faster.
  • Added brainfuck code optimization option ("OPTIMIZE").
  • Added memory size option ("MEMSIZE").
  • Added bit width option ("BITWIDTH").
  • Added extra comments option ("SBCOMMENTS").
  • Added converted code optimization option ("SBOPTIMIZE").
  • Added fail-safes for options.
  • Included "BITWIDTH.B".
  • Updated code formatting and comments.
  • Made separate file "-README.TXT" for more information about BF2SB.