Front Page All Articles Recent Changes Random Article

Contents

Concatenative language

  • ACL
  • Ait
  • Breeze
  • Cat
  • Cognate
  • colorForth
  • CoSy
  • Deque
  • Elymas
  • Enchilada
  • ETAC
  • Factor
  • Forth
  • Freelang
  • Gershwin
  • Joy
  • Kitten
  • lang5
  • Lviv
  • min
  • mjoy
  • Mlatu
  • Ode
  • Om
  • Onyx
  • Plorth
  • Popr
  • Porth
  • PostScript
  • Quackery
  • r3
  • Raven
  • Retro
  • Staapl
  • Stabel
  • Trith
  • Worst
  • xs
  • XY
  • 5th
  • 8th

Other languages

  • APL
  • C++
  • Erlang
  • FP trivia
  • Haskell
  • Io
  • Java
  • JavaScript
  • Lisp
  • ML
  • Oberon
  • RPL
  • Self
  • Slate
  • Smalltalk

Computer Science

  • Type systems
  • Language paradigms
  • Compilers
  • Interpreters
  • Garbage collection

Meta

  • Search
  • Farkup wiki format
  • People
  • Etiquette
  • Sandbox

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

Latest Revisions Edit

All content is © 2008-2023 by its respective authors. By adding content to this wiki, you agree to release it under the BSD license.