Skip to content

About

An interpreter for the brainf**k programming language written in C

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

23 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Brainfuck Interpreter

This an interpreter/compiler for the brainf**k programming language written in the C language.

Brainfuck

Brainfuck is a minimal language containing only 8 operators; '+', '-', '*', '/' '>' '<' '[' ']', the table below describes, in brief, what these operators do. Every program that one writes should only use these operators. Using this language people have built some weirdly good programs.

Brainfuck Operators

Operators Desciption
+ Increments the Decimal value stored inside the memory block currently being used by 1
- Decrements the Decimal value stored inside the memory block currently being used by 1
> Selects, for use, the memory block to the right of the memory block currently being used
< Selects, for use, the memory block to the left of the memory block currently being used
. Prints the ASCII equivalent to the decimal value stored in the current memory block
, Takes a character from the user as input and stores its decimal equivalent to the current memory block
[ Starts the loop
] Runs the body of the loop again if current memory block isn't 0, if it is, then it ends the loop

I hope the table above gives a little idea of how this language works, but if you want to learn a bit more about this language i'd suggest going through this blog

About

An interpreter for the brainf**k programming language written in C

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages