Home

Awesome

brainfckInterpreter

Very basic interpreter for the - actually turing-complete! - brainfuck language.

Feel free to give ideas, tips and constructive critique for improvement.

The underlying structure functions like a turing machine in a way. The Tape consists of multiple Cells, and points to one of them. Each Cell holds a value and has a reference to it's left and right neighbour.

BE CAREFUL! Theres no limit to the count of cells, so a infinite loop just going into a direction, like this little guy:

+[>+]

can blow up memory consumption! Handle with care! (Most OS will terminate the process.)

Brainfuck reference: https://en.wikipedia.org/wiki/Brainfuck