Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Milan's Brainfuck Interpreter

A simple Brainfuck interpreter written in Go. It can execute Brainfuck programs or print their generated bytecode for debugging and inspection.

Features

  • Execute Brainfuck programs
  • Print generated bytecode without execution
  • Basic syntax validation
  • Lightweight CLI interface
  • Written in pure Go

Installation

Make sure you have Go installed:

Go Programming Language

Clone the repository and build the project:

git clone <your-repo-url>
cd <your-project-folder>

go build -o bf

Usage

bf [OPTIONS] FILE

Options

Option Description
-h Print help message
-b Print generated bytecode without executing

Examples

Run a Brainfuck program

./bf hello.bf

Print bytecode

./bf -b hello.bf

Show help

./bf -h

Example Brainfuck Program

++++++++++[>+++++++>++++++++++>+++>+<<<<-]
>++.>+.+++++++..+++.>++.
<<+++++++++++++++.>.+++.
------.--------.>+.>.

Running it prints:

Hello World!

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages