https://github.com/lexi-lambda/racket-tulip
https://github.com/lexi-lambda/racket-tulip
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/lexi-lambda/racket-tulip
- Owner: lexi-lambda
- Created: 2016-02-17T15:57:52.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2016-09-22T16:52:03.000Z (almost 9 years ago)
- Last Synced: 2025-01-30T02:10:03.935Z (5 months ago)
- Language: Racket
- Size: 32.2 KB
- Stars: 15
- Watchers: 2
- Forks: 1
- Open Issues: 8
-
Metadata Files:
- Readme: README.md
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