Skip to content

zacstewart/brainfuck-pp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 

Repository files navigation

brainfuck++

A toy brainfuck interpreter written in C++. I wrote this as a learning exercise to understand pointers. You can read about it here.

To Build

You need GCC.

make

Run It

./brainfuck -e ">++++++++[<+++++++++>-]<.>>+>+>++>[-]+<[>[->+<<++++>]<<]>.+++++++..+++.>
>+++++++.<<<[[-]<[-]>]<+++++++++++++++.>>.+++.------.--------.>>+.>++++."
Hello World!
./brainfuck hello.b
Hello World!

Run a Brainfuck program as a script

#! /usr/local/bin/brainfuck
>++++++++[<+++++++++>-]<.>>+>+>++>[-]+<[>[->+<<++++>]<<]>.+++++++..+++.>
>+++++++.<<<[[-]<[-]>]<+++++++++++++++.>>.+++.------.--------.>>+.>++++.
chmod +x script.b
/script.b
Hello World!

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published