Post Reply 
Programming Pad for RPL Programs
05-22-2014, 01:38 AM
Post: #22
RE: Programming Pad for RPL Programs
(05-21-2014 11:23 PM)rprosperi Wrote:  Thanks Thomas, interesting style. And I'm sure you're damned happy to see such excellent comments when you come back to look at this code months (even hours!) later.

In this particular case I've added the stack diagrams to analyze the program.

Quote:I think I might have had the stack reversed (left-to-right vs. your right-to-left), so that the 'bottom' level is at the left side near the current command, so you can always see the most immediate argument you are working with.

That's just the way stack-diagrams are written in FORTH.
Though I can see your point it would be tedious to reverse the stack and have it right-aligned. I think it's helpful when elements of the stack that aren't affected by a command stay at the same position.
You could write the stack-diagram on the left of your code but then you'll see the result before you see the action.
After a while you just get used to it.

Cheers
Thomas
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: Programming Pad for RPL Programs - Thomas Klemm - 05-22-2014 01:38 AM



User(s) browsing this thread: 1 Guest(s)