DEV Community


Writing a simple Brainfuck interpreter in C#

tingwei628 profile image Tingwei Updated on ・1 min read


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. :)

Discussion (0)

Editor guide