Re: Writing a language in Euphoria
- Posted by xecronix 1 week ago
- 165 views
As far as using a debugger. I've thought a little about that too.
- right arrow move to the next command in the tree.
- down arrow (step into) move to the next node. Assumes the interpreter is keeping a stack of blocks for jumping. If that's what happens move to the node on the top of the stack. or said a different way... stop when new stack len == current stack len + 1.
- up arrow (step out) move to the node one level deeper in the stack. or said a different way... stop when new stack len == current stack len - 1.
- left arrow - I agree with you. we should be able to go backwards. And as long was we don't mind data may already be mutated allow this to happen. Developer beware.
Not sure if any of this works yet. But, that's my initial thoughts.