On Sagittarius, user can call R7RS libraries on R6RS script and also other way around. However syntaxes are different. User can choose which syntax use.
[R7RS]name must be a list which can only contains symbol or exact integer.
clauses may be one of these:
(export
export-spec ...)
(import
import-set ...)
(begin
command-or-definition ...)
(include
filenames ...)
(include-ci
filenames ...)
(include-library-declarations
filenames ...)
(cond-expand
cond-expand-clause ...)
export
and import
are the same as R6RS. And on R7RS renaming
export syntax is different from R6RS, however on Sagittarius both can be
accepted.
begin
starts the library contents. However it can appear more than once.
include
and include-ci
includes the files which are specified
filenames. filenames must be string. This resolves file path from
current loading file. If the library file is /usr/local/lib/lib1.scm, then
search path will be /usr/local/lib. It can also take absolute path.
include-ci
reads the file case insensitive.
cond-exnpand
is the same as builtin syntax cond-expand
. For more
detail, see Builtin Syntax.