Closed sunjay closed 7 years ago
A basic version of this has now been implemented in the brainfuck-visualizer
directory. It works quite well and displays some basic information. With it, I was able to debug the issues that were occurring with #2. More features will be added to it over time.
This issue was moved to brain-lang/brain-debug#1
An important part of every great language is its tooling. We need a debugger so we can figure out what is going wrong in our brainfuck programs.
1. Brainfuck Interpreter Better Implementation + Debug Mode
-D
/--debug
) which given a program, runs that program, then outputs to stderr a CSV of info like instruction number, instruction as a char, pointer address (index in the tape), memory dump (dump of the entire tape so far)This will give people the ability to hand debug their brain programs without the interface if they so desire.
2. Brainfuck Visualizer
An electron UI that uses the debugger in a subprocess to output this information.
3. Sourcemaps (optional)