This is an interpreter for the esoteric programming language Brainfuck.
gcc main.cpp Interpreter.cpp Memory.cpp -lstdc++ -o bfInterpreter
You can replace bfInterpreter
with any name for the outputted executable file. Make sure to use the correct file name when running the program.
./bfInterpreter /path/to/file.bf (input to the program)
This program outputs the line Hello World!
./bfInterpreter ./examples/HelloWorld.bf
This program outputs the Mandelbrot set. This program was written by Erik Bosman.
./bfInterpreter ./examples/mandelbrot.bf
This program just outputs the input string without changing it.
./bfInterpreter ./examples/cat.bf This text is output!
This program will also output Hello World!
./bfInterpreter ./examples/cat.bf Hello World!