Breeze

Breeze is a general-purpose stack-based programming language. The main feature of the language is that the concepts of stack and dictionary are no longer distinct. In fact, dictionary words are replaced by named stacks. The process of defining a word is replaced by "pushing" onto a named stack, and that of executing a word is replaced by "popping" from a named stack. A named stack is called an application. Data and code can be moved between applications by using operations (i.e. other applications) that make use of a default stack as an intermediate. In principle, the language recognizes only numbers that can be organized into lists, which are the only form of aggregation of data/code.

As an illustration, the hello-world code example is implemented as:


    (Hello, \s World! \n\n)       
    ASC 
    StdOut
    PUTS

A possible implementation of the factorial function is:


    (
    (DUP 0 =) 
    (DROP 1) 
    (DUP 1 - Fact *) 
    IFTE 
    )
    (Fact)
    PUSH

For details, see http://sourceforge.net/projects/breeze-language/.

This revision created on Tue, 3 Mar 2015 15:38:17 by mauro