I have tried to implement a BF interpreter in Javascript. It works for many programs like printing Hello world, looping, etc. Here is link to a sample interpreter that I use for comparing outputs: https://sange.fi/esoteric/brainfuck/impl/interp/i.html But when I try to run a BF to C program, it gets stuck like it is in an infinite loop. It however does work