? BF2SB [SB4] ● SmileBASIC Source

Sign In

*Usernames are case-sensitive
Forgot my password
What's going on?? See: Site Update March 2022


Public Key
Min. Compat.
SB4 (Switch)
37.3 KB
1 vote
Description Documentation: https://new.smilebasicsource.com/pages/1058 New page: https://new.smilebasicsource.com/pages/299 BF2SB v3.0 - The Performance Update is finally here! BF2SB is a tool that compiles brainfuck code to SmileBASIC 4 code. It features a code scanner (which allows for indentation and comments for source code) and an optimizer, as well as optimization and indentation for the converted code. BF2SB also features options that allow you to adjust how brainf**k code is compiled and run. Several example programs (not by me) are included to demonstrate the functionality of BF2SB. Sample programs with a "_" prefix need option changes in order to work properly, so experiment with the options to see which ones make the programs work! If you want to learn more about brainfuck, go here: https://esolangs.org/wiki/Brainfuck

Features added in v3.0

  1. New SmileBASIC 4 icon.
  2. Several aspects of the compiler and the compiled programs it generates have been given much-needed optimizations.
  3. The failsafe script for the options is now much cleaner.
  4. Added syntax error detection for brainfuck code, which eliminates most (if not all) chances of getting a syntax error from the compiled program.
  5. Added failsafes during the scanning and optimization processes, which prevent errors and unexpected behavior from occurring.
  6. Added more optimizations for brainf**k code.
  7. Fixed XSCREEN option parameters.
  8. Added SBPERF option, which measures how many microseconds elapse during the runtime of a compiled program. Cannot be enabled while SBMEMDUMP and SBWAIT are enabled, or a failsafe
  9. prompt will prevent the compiler from running.
  10. SBCOMMENT, SBINDENT, and SBNEWLINES have been merged into one command--SBBEAUTIFY.
  11. Added SBTAB option, which prints four spaces instead of HT characters.
  12. SBCHR13 has been renamed to SBNEWLINE and has been given an additional, optional function, printing LF characters instead of CR characters for Macintosh newlines.
  13. Added SBMEMDUMP option. When a "#" is encountered in the brainfuck code or the end of the compiled program is reached, the current memory will be saved to a DAT file.
  14. Added SBOUTPUT option. When the end of the compiled program is reached, the output will be saved to a TXT file.
  15. Included more example programs.
If there's anything that you would like me to improve for BF2SB, please leave a comment!
Instructions Check out the documentation for instructions: https://new.smilebasicsource.com/pages/1058
  • brainfuck
  • SB4
  • tool
  • programming
  • demo
2 Comment(s) HTV04 HTV04 Forum Leader Hidden Achievements Third Year My account is over 3 years old Website Intermediate Programmer I can make programs, but I still have trouble here and there. Programming Strength Note for anyone who's downloaded this program: I have issued new keys for all of my published SB4 works. Please download this program again or you will no longer receive updates as the old keys are now invalid. the_squat1115 the_squat1115 Second Year My account is over 2 years old Website Avatar Taboo I didn't change my avatar for 180 days Website Forum Contributor Hidden Achievements Brainfuck. That is an authentic brainfuck(er)