All Projects → lexi-lambda → Racket Tulip

lexi-lambda / Racket Tulip

Programming Languages

racket
414 projects

🌷 Tulip as a Racket #lang

This is a Racket implementation of the Tulip programming language. It implements Tulip as a Racket #lang. This is an extreme work-in-progress, so the language support is currently somewhat poor (and Tulip itself is still a work in progress, itself).

To install, just run raco pkg install tulip. You should then be able to write Tulip programs simply by writing #lang tulip at the top of your modules.

#lang tulip

@import tulip/math

test = {
  is-even = [ 0 => .t; x => decr x > is-odd  ]
  is-odd  = [ 0 => .f; x => decr x > is-even ]
  [ .even x => is-even x; .odd x => is-odd x ]
}

test (.even 3)
test (.odd  3)
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].