DEV Community

Tingwei
Tingwei

Posted on • Updated on

Writing a simple Brainfuck interpreter in C#

GitHub

I heard Brainfuck so many times, and decided to spend some time to work on a simple interpreter in C# . If you want to see how Brainfuck works, check out brainfuck visualizer @fatiherikli.

Here's one point to mention. When I tried to work on Nested loop, I used Stack (FILO) to memorize the position of bracket. It helped to order the bracket and navigate the exact position of bracket. Because I only tested the basic case like "Hello World" which was written in Brainfuck, I need to cover more test cases.

Next, I would try to validate the Brainfuck files. :)

Top comments (0)