Skip to content

andy-sukowski/brain

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

brain - brainfuck interpreter

This is a simple interpreter for the brainfuck programming language, written in C.

Behavior

  • All characters except the eight commands ><+-.,[] are ignored and treated as comments.

  • The array has 30,000 cells and each cell in the array contains a byte (most commonly 8 bits).

  • Moving the pointer outside the bounds of the array will result in undefined behavior.

Installation

Edit config.mk to match your local setup (brain is installed into the /usr/local namespace by default).

Afterwards enter the following command to build and install brain (if necessary as root):

make clean install

Running brain

After successfully installing brain, you can run it:

brain <file>

This is an example of running brain:

brain example.bf

About

This is a simple interpreter for the brainfuck programming language, written in C.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published