Skip to content

gabrielecabrini/brainfucker

Repository files navigation

Brainfucker

GitHub release CI Go Report Card License

This project contains an interpreter and an LLVM IR transpiler for Brainfuck.

Requirements

  • Go 1.20+ installed on your system

Building

Clone the repository and build the executables:

git clone https://github.com/gabrielecabrini/brainfucker
cd brainfucker
go build -o brainfucker cmd/brainfucker/main.go

Usage

Run the interpreter with a Brainfuck source file:

./brainfucker run path/to/program.b

Run the transpiler to generate LLVM IR:

./brainfucker transpile path/to/program.b

Examples

The examples folder contains sample Brainfuck programs

About

Brainfuck interpreter & LLVM IR transpiler

Resources

License

Stars

Watchers

Forks

Languages