On Mar 16, 8:37 pm, Jonah Thomas <jethom...@[EMAIL PROTECTED]
> wrote:
> I think it was Win32Forth that would put a stack diagram in a separate
> window and show whenever it got updated. A nice tool to help build the
> one you want. I used it for a little while, but it was annoying. My
> students never used it. I never noticed anybody else use it or talk
> about using it, but since it's a debug tool they might just not mention
> it.
No, that's a debug tool.
It would look like a multi-pane debugger, but rather than have a Forth
and work out how to debug it, you design the Forth animator and then
write a Forth that you can animate well. If you have a 32 bit Forth,
then make the animated Forth 24 bit or 16 bit, so that it can be
wholly contained in a closed space inside the animation program.
This is like the "Visible Man" and "Visible Woman" models they use in
physiology. The executable code show up as one color, the comments as
another, the cursor is in the spot in the source inside the word
currently being executed, after execution has passed a word, it gets a
slightly darker shade of its original color. Over in the panel in the
left hand side is the display proper, beneath the two screens, facing
each other just across the the middle of the screen, is the datastack
and return stack, in a stack of views of in unsigned, signed and, if
in the character range, character. The reverse color highlight hops
merrily around the source code display screen. Of course, when
interpreting the command line, the SOURCE string shows up in the
display, with the cursor hopping merrily in just the same way.
Between the two main displays is the memory peek-hole, "lower"
addresses at the bottom, "higher" addresses at the top. Normally the
memory peak-hole follows HERE through the codespace.
I wouldn't try to write it, first, because its probably beyond my
reasonable ambitions, and second, because I am not interested in
teaching Forth in a classroom setting. But if I had had something like
that when I was learning Forth, I would have learned more quickly.


|