On this page:
top
up

4R6RS Module LanguageπŸ”— i

#lang r6rs package: r6rs-lib

The r6rs language is usually used in the form #!r6rs, which is equivalent to #lang r6rs and is also valid R6RS syntax.

4.1Using R6RSπŸ”— i

See Using R6RS with DrRacket, Running Top-Level Programs, and Installing Libraries for more information on writing and running R6RS programs with Racket.

4.2The Implementation of R6RSπŸ”— i

The R6RS language is itself implemented as a module within Racket. The details of that implementation, as provided in this section, are not normally relevant to programmers using R6RS; see the links in Using R6RS, instead. The details may be relevant to programmers who are developing new tools or deriving variants of R6RS within Racket.

As a Racket module, the r6rs module language provides only a #%module-begin binding, which is used to process the entire body of a Racket module (see module ). The #%module-begin binding from r6rs allows the body of a module to use the syntax of either a R6RS library or a R6RS top-level program.

syntax

(librarylibrary-name
(exportexport-spec...)
(importimport-spec...)
library-body...))
(importimport-spec...)
program-body...)
An r6rs module that contains a single library form defines an R6RS library, while a module body that starts with an import form defined an R6RS top-level program.

The library, export, and import identifiers are not exported by the r6rs library; they are recognized through equivalence to unbound identifiers.

top
up

AltStyle γ«γ‚ˆγ£γ¦ε€‰ζ›γ•γ‚ŒγŸγƒšγƒΌγ‚Έ (->γ‚ͺγƒͺγ‚ΈγƒŠγƒ«) /