AtlatestRenderedmarkdown
Readme

sigil-r7rs

R7RS-small compatibility library for Sigil.

This package provides the standard (scheme *) module paths defined by R7RS-small, allowing programs written against the R7RS standard library to run on Sigil without modification.

Modules

ModuleR7RS Section
(scheme base)Core library: arithmetic, lists, strings, I/O, control flow
(scheme case-lambda)Case-lambda dispatch
(scheme char)Character predicates and case conversion
(scheme cxr)Compositions of car and cdr
(scheme eval)eval and environment
(scheme file)File I/O
(scheme inexact)Inexact arithmetic (sin, cos, sqrt, etc.)
(scheme lazy)delay, force, make-promise
(scheme load)load
(scheme process-context)command-line, exit, environment variables
(scheme read)read
(scheme repl)interaction-environment
(scheme time)current-second, current-jiffy
(scheme write)display, write, write-shared

Usage

Add as a dependency in your package.sgl:

(define sigil-repo "codeberg:sigil/sigil")

(package
  ...
  dependencies: (list
    (from-git url: "codeberg:sigil/sigil-r7rs")))

Then import standard Scheme modules:

(import (scheme base)
        (scheme write))

(display "Hello from R7RS!")
(newline)

Building

sigil deps install
sigil build
sigil test

License

BSD-3-Clause