Skip to content

andermoran/brainfuckinterpreter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Brainfuck interpreter for macOS

Installation

  • Compile and move to bin with

      gcc -o /usr/local/bin/bfc bfc.c
    

Features

  • VERY basic debugger
  • Support for Brainfuck++ (a language I'm working on)

Overview

First off I want to say I did not make this interpreter all by myself. To translate Brainfuck to C, I didn't reinvent the wheel instead I modified Cory Burgett's code to suit my needs. What this interpreter does is translates the Brainfuck code to C which is then compiled using gcc and then executed. I have begun extending the Brainfuck language to give it a few needed features. I'll refer to it as Brainfuck++. So far I've added two extra characters which are * and %. These symbols deal with i/o and their use it shown in the source code (bfc.c). Also your Brainfuck code needs to be flawless as my debugger is in it's fetus stage (like only 2 weeks pregnant young) so it's not going to help too much. I've never done anything like this before so this is a learning experience for me.

Note

  • Requires gcc to be installed
  • Brainfuck files have the extension .b and Brainfuck++ have .bpp.
  • If you're having a hard time understanding Brainfuck code go to Fatiherikli's Brainfuck visualizer.

Contact

@andermorandev

[email protected]

License

MIT

About

An interpreter for Brainfuck made for macOS and Linux

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published