Design
cat.txt
Associated article: Cat: A Functional Stack-Based Little Language
Tags: Global Developer .NET Tools Open Source Design
Published source code accompanying the article by Christopher Diggins in which he introduces Cat, an intermediate language for program verification, optimization, and the like. Also see CAT.ZIP.
Cat: A Functional Stack-Based Language
by Christopher Diggins
Example 1: Sample Cat functions
define myFirstCatProgram
{ "what is your name?" writeln readln "Hello " swap strcat writeln }
define addone : (int -> int)
{ 1 + }
define swapd : ('a 'b 'c -&...


