An open API service indexing awesome lists of open source software.

https://github.com/lexi-lambda/racket-tulip


https://github.com/lexi-lambda/racket-tulip

Last synced: 3 months ago
JSON representation

Awesome Lists containing this project

README

        

# 🌷 Tulip as a Racket `#lang`

This is a Racket implementation of the [Tulip][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.

```tulip
#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)
```

[tulip]: https://github.com/tulip-lang/tulip