? Brainfuck Compiler for SmileBASIC 4 ● SmileBASIC Source

Sign In

Register
*Usernames are case-sensitive
Forgot my password

Brainfuck Compiler for SmileBASIC 4

Submitted
Updated
Author
HTV04
Public Key
4R4P3S3Q4
Min. Compat.
Wii U
Version
v1.0
Rating
0 votes
Description Once again, the Min. Compat. is NOT Wii U. It’s Switch, because this program is for SmileBASIC 4. This is a Brainfuck Compiler based on phil_’s for SmileBASIC 3. The compiler code is mostly the same from his compiler, however, I added a few things such as having the minified version of the Brainfuck program compiled as a comment above the compiled program, as well as adding an XSCREEN line to suggest changing the resolution based on the Brainfuck program you compile. I also changed how the compiler works. Now, code is much easier to compile, and can be edited in the default SmileBASIC editor. Just load the compiler (BRAINF.PRG) into slot 0. Then, type your Brainfuck code into slot 1, or load code from a file into slot 1. Now, when you want to compile Brainfuck code, it’s as simple as running any other SmileBASIC program (by pressing start or F5). The output of the compile is saved to slot 2 and is automatically executed after the compilation of the Brainfuck program is complete. In addition to changing how the compiler works, I also changed how it reads Brainfuck code. Now, the compiler only reads valid Brainfuck code from left to right, top to bottom, effectively minifying the program before compiling it. This change allows the compiler to skip indentations and "comments." Instructions Open MAIN.PRG. Instructions on how to use the compiler, as well as information about the compiler, can be found here. Notes -[------->+<]>---.[++>-------<]>.-------.-[->+++++<]>-.++[->+++<]>.-----.++.-[--->+<]>--.[-->+<]>.[-->+<]>+++.>-[--->+<]>-.[---->+++++<]>-.---.--[--->+<]>-.+[->+++<]>.++++++++++++.-----------.+.--[--->+<]>-.+++++[->+++<]>.-.-[->+++++<]>-.---[->++++<]>.------------.---.--[--->+<]>-.-[--->++<]>-.------.++++++++++++.-.-[->+++++<]>-.++[->+++<]>.+++++++++.+++.[-->+++++<]>+++.---[->++++<]>.------------.+.++++++++++.+[---->+<]>+++.[-->+++++++<]>.++.---.-----.-----.--.-[--->+<]>--.[---->+<]>+++.-[--->++<]>-.++++++++++.+[---->+<]>+++.[->+++<]>+.-[->+++<]>.--[->++++<]>--.[->+++<]>-.+++++++++++.---.-----.-[--->+<]>-.+[->++<]>.---[----->+<]>-.+++[->+++<]>++.++++++++.+++++.--------.-[--->+<]>--.+[->+++<]>+.++++++++.-[++>---<]>+.[-->+++++++<]>.++.---.--------.+++++++++++.+++[->+++<]>++.++++++++++++.[->+++++<]>.-.++++[->++<]>+.[----->+<]>-.+[--->+<]>.-[->+++<]>+.+[---->+<]>+++.[->+++<]>+.-[->+++<]>.+[->++<]>+.-[-->+++<]>--.--[--->+<]>-.[---->+<]>+++.++++++++.-----[->+++<]>.+++++.++.+++++.-.[---->+<]>+++.---[->++++<]>.-----.[--->+<]>-----.+++++[->+++<]>.++++++.-.----.+++++.-.+[--->+<]>++.---------.[-->+++++++<]>.++.---.--------.+++++++++++.+++[->+++<]>++.++++++++++++.[->+++++<]>-.-[--->++<]>-.-----.+.+++++++++.++++++.-----------.------.--.+++++++++++.[++>---<]>--.---[->++++<]>.-----.[--->+<]>-----.+++++[->+++<]>.-.---------.--[--->+<]>-.+++++[->+++<]>.---------.[--->+<]>--.---[->++++<]>.------------.---.--[--->+<]>-.+[->+++<]>++.[--->+<]>+.--[->+++<]>-.++++++++++++.+++.----.-------.[--->+<]>----.+[---->+<]>+++.-[--->++<]>-.+++++.-----------.+++++++++.+++++++++.+[->+++<]>++.+.-.-[--->+<]>-.-[--->++<]>-.+++++.-[->+++++<]>-.---[->++++<]>.------------.---.--[--->+<]>-.[-->+++++++<]>.++.---.-----.-----.--.-[--->+<]>--.[++>---<]>.>++++++++++..++[++++>---<]>.-[->++++<]>.---[----->++<]>.-------------.----.+++++++++++..-[--->+<]>.-[---->+<]>++.-[--->++<]>--.+++++++.+.-----------.--[--->+<]>-.--[->++++<]>+.----------.++++++.-[---->+<]>+++.+[->+++<]>+.+++++.-----.++++++++++.[++>---<]>++.[->+++<]>-.[---->+<]>+++.---[->++++<]>.+++++.---------.-----------.--[--->+<]>-.---[->++++<]>.------------.+.++++++++++.+[---->+<]>+++.+[->+++<]>.+++++.-------.--[--->+<]>---.+++[->+++<]>++.++.-[--->+<]>--.+++[->+++<]>.+++++++++++++.[++>---<]>++.-[--->+<]>--.[--->+<]>+++.-[-->+++++<]>+.-[--->+<]>-.+++++.-------.--[--->+<]>---.+++[->+++<]>++.++.-[--->+<]>--.+++[->+++<]>.+++++++++++++.[-->+++++<]>+++.-[--->++<]>-.+++++.++++++.-----.[--->+<]>-----.---[->++++<]>.------------.+.++++++++++.+[---->+<]>+++.+[->+++<]>.++++++++++++.--.+++.-------.+++.-------.+++++++++++++.++[++>---<]>.
Categories
Keywords
  • SB4
  • brainf***
  • brainf*ck
  • interpreter
1 Comment(s) the_squat1115 the_squat1115 Minecraft Is Awesome! I love Minecraft! Express Yourself Intermediate Programmer I can make programs, but I still have trouble here and there. Programming Strength Video Games I like to play video games! Hobbies Brainfuck. That is an authentic brainfuck(er)