Merge branch 'main' of ssh://git.fai.su:1500/Suguivy/cherry-lisp

This commit is contained in:
Ivy 2021-02-03 00:59:28 +01:00
commit d74730afde
1 changed files with 5 additions and 7 deletions

View File

@ -1,6 +1,6 @@
# Cherry Lisp # Cherry Lisp
``` ```text
/\ /\
| \ A tiny, curried and lazy Lisp. | \ A tiny, curried and lazy Lisp.
@ @ @ @
@ -40,8 +40,6 @@ cherry> (const 3 6)
3 3
cherry> (set! always-seven (const 7)) cherry> (set! always-seven (const 7))
nil nil
cherry> always-seven
#[lambda y x]
cherry> (always-seven 1) cherry> (always-seven 1)
7 7
cherry> (always-seven 8) cherry> (always-seven 8)
@ -52,20 +50,20 @@ cherry> (always-seven 8)
Install the *stack* build tool. On *Debian* based systems, run (as root): Install the *stack* build tool. On *Debian* based systems, run (as root):
``` ```text
# apt install haskell-stack # apt install haskell-stack
``` ```
Clone the repo: Clone the repo:
``` ```text
$ git clone https://git.fai.su/Suguivy/cherry-lisp $ git clone https://git.fai.su/Suguivy/cherry-lisp
``` ```
Compile it: Compile it:
``` ```text
$ cd cherry-lisp $ cd cherry-lisp
$ stack upgrade $ stack upgrade
$ stack build $ stack build
@ -73,7 +71,7 @@ $ stack build
Install and execute it: Install and execute it:
``` ```text
$ stack install $ stack install
$ cherry $ cherry
``` ```