Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/fch/brainfckInterpreter

Very basic interpreter
https://github.com/fch/brainfckInterpreter

Last synced: 2 months ago
JSON representation

Very basic interpreter

Awesome Lists containing this project

README

        

# 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