You. Forth. Simplicity.

git repository
download
prior releases
documentation wiki
issue tracker
mailing list and forum
irc channel and logs
try it


This wiki remains, like the original forum, mainly for historical value. There is a new wiki which, while having less content, is more secure and oriented towards modern Retro implementations.

reload node | edit | recent changes | front page

Reading Stack Comments

In many cases, you will find stack comments on the words that you write or use to be a big help. There are two different forms used by the developers of RetroForth.

The long form looks like ( a b c -- d ). In this case, a b c are taken off the stack and d is left after execution finishes. The rightmost item on each side of the -- is the TOS.

The short form is basically a condensed version of the long form. The above example would look like ( abc-d ). Each item in the short form is represented by a single character, with no spaces.

There is also an informal set of common symbols used in stack comments. These are shown below, and we recommend keeping to them if possible.

Charles Childers says I personally prefer the short form, especially when used in source. In most cases it is sufficient, and it takes less visual space. The long form can be a bit more useful in printed word lists, as it allows more detailed stack comments. I feel that it is overkill for most words though.