On 9/7/07, William Tanksley, Jr <[EMAIL PROTECTED]> wrote: > I made a dialect of Forth use a syntax I called stack shuffle notation.
Long ago (in the mid-80's) I was working with a Forth dialect which had a very handy (to my taste at least) set of the stack manipulation words. There was a set of copying commands: C (a-aa), C2 (ab-aba), C3 (abc-abca), C4(abcd-abcda), a set of exchange commands: E2 (ab-ba), E3 (abc-cba), E4 (abcd-dbca), and a set of drop commands: D (a-), DD (ab-), DDD (abc-), DDDD (abcd-). The way I am thinking about stack manipulations leads to a very easy (almost no-thought) decomposition into C, D and E primitives. -- Cyril Slobin <[EMAIL PROTECTED]> `When I use a word,' Humpty Dumpty said, http://wagner.pp.ru/~slobin/ `it means just what I choose it to mean' ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Factor-talk mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/factor-talk
