Brainfuck+ Compiler This also has a vscode extension named Brainfuck+ Syntax
It's in alpha right now
If you want an executable go here
- Create a new file named
bfp_file_name.bfp - Download the bfp executable from this
- Copy the bfp executable to your folder with the file
- If there isn't a binary for your system, you must compile the project with Cargo
- Open a command prompt in the folder
- Run:
bfp bfp_file_name.bfp bf_file_name.bfor./bfp.exe bfp_file_name.bfp bf_file_name.bfif it doesn't work (bfp being the compiler executable) - If you have Windows, you can download the interpreter
- On Windows, run:
interpreter bf_file_name.exeor./interpreter.exe bf_file_name.bfif it doesn't work
- On other systems, you have to compile it (Instructions) and run it with an interpreter (I recommend tio.run)
- Enjoy writing in Brainfuck+ (tutorial)
If you want to know how to make your first program, go to this
- Comments
- Single-line:
// - Multi-line:
/*and*/
- Single-line:
- Keywords
- p
- Print statement
- Example usage:
p "Hello, world!"
- p
- Data types
- Chars
- Declared with
"and ended with"
- Declared with
- Strings
- Declared with
"and ended with"
- Declared with
- Chars
- Escape sequences
\"-"character\\-\character\n- Newline character
- Commands
+- Adds 1 to the current cell-- Removes 1 from the current cell>- Moves the pointer right<- Moves the pointer left[- Starts a while loop- Explanation:
- When it ends it will find if the current cell is 0:
- If it is; it will end the while loop
- If it isn't; it will continue looping
]- Ends a while loop.- Prints the current cell value as an ASCII character,- Stores user input inside the current cell
- Including ones stated earlier (Non-Brainfuck; only Brainfuck+)
-
Follow the installation instructions
- In the
bfp_file_name.bfpfile add this code:p "Hello, Brainfuck+!"
- Now run this code (Instructions)
- It should print
"Hello, Brainfuck+!"
- In the
If you have vscode; you can install the extension (it should ask automatically or download it from the top link)