A simple Brainfuck interpreter written in Go. It can execute Brainfuck programs or print their generated bytecode for debugging and inspection.
- Execute Brainfuck programs
- Print generated bytecode without execution
- Basic syntax validation
- Lightweight CLI interface
- Written in pure Go
Make sure you have Go installed:
Clone the repository and build the project:
git clone <your-repo-url>
cd <your-project-folder>
go build -o bfbf [OPTIONS] FILE| Option | Description |
|---|---|
-h |
Print help message |
-b |
Print generated bytecode without executing |
./bf hello.bf./bf -b hello.bf./bf -h++++++++++[>+++++++>++++++++++>+++>+<<<<-]
>++.>+.+++++++..+++.>++.
<<+++++++++++++++.>.+++.
------.--------.>+.>.Running it prints:
Hello World!