fuck yeah, my language workbench is now generating *correct* native code from Br...
[object Object] @zzt@mas.to
fuck yeah, my language workbench is now generating *correct* native code from Brainfuck programs!
the sum total of the bugs:
- the type of my cell data pointer $dp is a pointer to a pointer, but I wasn’t dereferencing one of the pointers
- I had the conditional branches for the [ instruction the wrong way around
big shout to @ganxel for recommending QBE, it’s wonderful for this use case! and now I’ve got it wrapped in a weird little emacs lisp DSL