Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/locksten/lusp
An interpreter for a scheme-like language
https://github.com/locksten/lusp
haskell interpreter scheme
Last synced: 27 days ago
JSON representation
An interpreter for a scheme-like language
- Host: GitHub
- URL: https://github.com/locksten/lusp
- Owner: locksten
- Created: 2015-06-03T15:36:30.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2015-06-03T17:34:15.000Z (over 9 years ago)
- Last Synced: 2024-04-17T23:59:35.033Z (7 months ago)
- Topics: haskell, interpreter, scheme
- Language: Haskell
- Homepage:
- Size: 262 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Lusp
====Lusp is an interpreter for a scheme-like language written in Haskell
and inspired by [Write Yourself a Scheme in 48 Hours](http://en.wikibooks.org/wiki/Write_Yourself_a_Scheme_in_48_Hours).Installing
==========```sh
git clone https://github.com/locksten/lusp /tmp/lusp
cd /tmp/lusp/library && cabal install
cd /tmp/lusp/executable && cabal install
```Usage
=====Running a file:
```
$ lusp /tmp/lusp/examples/gradient.scm 2 25 linear 25 23
xx;;;;;;:::::,,,,,.....
xxx;;;;;::::::,,,,,.....
xxxx;;;;;::::::,,,,,.....
```Running the repl:
```scheme
$ lusp
Lusp> (load "/tmp/lusp/examples/sort.scm")
Lusp> (sort < '(1 9 2 8 3 7 4 6 5))
Lusp> (1 2 3 4 5 6 7 8 9)
Lusp> exit
```Examples
========- [sort](examples/sort.scm)
- [stdlib](library/data/stdlib.scm)
- [gradient](examples/gradient.scm)
- [fibonacci](examples/fibonacci.scm)