Add some of the easier/smaller R6RS libraries

This commit is contained in:
Daphne Preston-Kendal 2024-10-18 19:29:35 +02:00
parent 0aa9260727
commit 472c728c46
6 changed files with 26 additions and 0 deletions

6
lib/rnrs/control.sld Normal file
View file

@ -0,0 +1,6 @@
(library (rnrs control)
(export when unless
do
case-lambda)
(import (scheme base)
(scheme case-lambda)))

4
lib/rnrs/eval.sld Normal file
View file

@ -0,0 +1,4 @@
(library (rnrs eval)
(export eval
environment)
(import (scheme eval)))

View file

@ -0,0 +1,3 @@
(library (rnrs mutable-pairs)
(export set-car! set-cdr!)
(import (scheme base)))

View file

@ -0,0 +1,4 @@
(library (rnrs mutable-strings)
(export string-set!
string-fill!)
(import (scheme base)))

4
lib/rnrs/programs.sld Normal file
View file

@ -0,0 +1,4 @@
(library (rnrs programs)
(export command-line
exit)
(import (scheme process-context)))

5
lib/rnrs/sorting.sld Normal file
View file

@ -0,0 +1,5 @@
(library (rnrs sorting)
(export (rename list-stable-sort list-sort)
(rename vector-stable-sort vector-sort)
(rename vector-stable-sort! vector-sort!))
(import (srfi 132)))