This is an implementation of R7RS "small" in Racket. To use it, install the package and use #lang r7rs
in your programs.
$ raco pkg install r7rs
#lang r7rs
(import (scheme base)
(scheme write))
(display (string-append "Hello, " "world!"))
All of the libraries defined in R7RS are available. However, there are a few minor missing features or inconsistencies:
(scheme base)
— Implemented except forinclude-ci
. Furthermore, thedefine-library
form is restricted to be more compatible with the Racket module system.(scheme process-context)
— All bindings are available, butexit
andemergency-exit
are the same, andexit
does not properly call outgoingdynamic-wind
thunks.
All other libraries are fully supported.