Brainfuck IDE is a comprehensive development environment for the Brainfuck programming language. It includes a compiler, interpreter, and an integrated development environment (IDE) with syntax highlighting, file management, and execution capabilities.
The purpose of Brainfuck IDE is to provide developers with a user-friendly tool to write, compile, and run Brainfuck programs. Brainfuck is an esoteric programming language known for its minimalism, and this IDE makes it accessible and easier to work with.
- Compiler: Converts .bfc source files into compressed .bfp binary files.
- Interpreter: Executes .bfp files efficiently.
- IDE: Python-based GUI with:
- Syntax highlighting for Brainfuck commands.
- Line numbers and cursor position display.
- File open/save functionality.
- Compile and run buttons.
- Integrated terminal for output.
- Input field for sending data to running programs.
- Asynchronous execution to prevent freezing.
- Error logging.
- Installer: GUI installer that extracts files, creates shortcuts, associates file extensions, and adds to PATH.
- Installation: Run the installation package to install the IDE.
- Open IDE: Launch the IDE from the desktop or start menu shortcut.
- Edit Code: Write Brainfuck code in the editor. Syntax highlighting will apply automatically.
- Compile: Click the "编译" (Compile) button to generate a .bfp file.
- Run: Click the "运行" (Run) button to execute the program. Output appears in the terminal.
- Input: Use the input field to send data to the program if needed.
- Stop/Clear: Stop running programs or clear the terminal as necessary.
Download the project files from the repository. Ensure you have Python, PyInstaller, and a C++ compiler (like g++) installed.
Compile the C++ files using:
g++ bfc.cpp -o bfc
g++ bfvm.cpp -o bfvm
pyinstaller --onefile --windowed --icon=brainfuck.ico ide.py
You can also download the installation package from Releases
- > < (pointer movement): Yellow (#795E26)
- + - (increment/decrement): Dark Cyan (#267F99)
- . , (input/output): Green (#008000)
- [ ] (loops): Nested levels - Blue (#2C31FA), Dark Green (#599359), Red (#8C383A)
- Other characters: Gray (#7D7D7D)
- Selection: Yellow background
Brainfuck IDE 是 Brainfuck 编程语言的综合开发环境。它包括编译器、解释器和带有语法高亮、文件管理和执行能力的集成开发环境 (IDE)。
Brainfuck IDE 的目的是为开发者提供一个用户友好的工具来编写、编译和运行 Brainfuck 程序。Brainfuck 是一种以极简主义闻名的深奥编程语言,这个 IDE 使其更易访问和使用。
- 编译器:将 .bfc 源文件转换为压缩的 .bfp 二进制文件。
- 解释器:高效执行 .bfp 文件。
- IDE:基于 Python 的 GUI,包括:
- Brainfuck 命令的语法高亮。
- 行号和光标位置显示。
- 文件打开/保存功能。
- 编译和运行按钮。
- 输出集成终端。
- 输入字段,用于向运行中的程序发送数据。
- 异步执行以防止冻结。
- 错误日志记录。
- 安装程序:GUI 安装程序,提取文件、创建快捷方式、关联文件扩展名,并添加到 PATH。
- 安装:运行 安装包 安装 IDE。
- 打开 IDE:从桌面或开始菜单快捷方式启动 IDE。
- 编辑代码:在编辑器中编写 Brainfuck 代码。语法高亮将自动应用。
- 编译:点击“编译”按钮生成 .bfp 文件。
- 运行:点击“运行”按钮执行程序。输出出现在终端中。
- 输入:如需要,使用输入字段向程序发送数据。
- 停止/清除:根据需要停止运行中的程序或清除终端。
从仓库下载项目文件。确保安装了 Python, pyinstaller 和 C++ 编译器(如 g++)。
使用以下命令运行安装程序:
g++ bfc.cpp -o bfc
g++ bfvm.cpp -o bfvm
pyinstaller --onefile --windowed --icon=brainfuck.ico ide.py
也可从 Releases 中下载安装包
- > < (指针移动):黄色 (#795E26)
- + - (增减):深青色 (#267F99)
- . , (输入/输出):绿色 (#008000)
- [ ] (循环):嵌套级别 - 蓝色 (#2C31FA)、深绿色 (#599359)、红色 (#8C383A)
- 其他字符:灰色 (#7D7D7D)
- 选中:黄色背景