wmww / BrainfuckIDE

A Brainfuck IDE/debugger designed to be intuitive, featureful and visually appealing
MIT License
92 stars 11 forks source link

Decouple frontend and branfuck runtime #6

Open wmww opened 6 years ago

wmww commented 6 years ago

data_display.gd currently manages both the internal representation of the data tape, and the visual display representation. Other bits of the brainfuck runtime (parsing and interpreting) are scattered throughout the code base. Purposed solution:

  1. design a clean interface between the runtime and the rest of the code, this should support:
    • Adding instructions to the queue
    • Dequeueing and running one instruction at a time
    • Running many instructions as fast as possible
    • Fetching a portion of the data tape for display
    • Endless loop handling
    • more?
  2. Implement this in GDScript
  3. Port the visual frontend to use it

Advantages: