okuoku / yuni

R7RS/R6RS/Generic Scheme portability platform
Other
32 stars 3 forks source link

SIBR: load,eval library / expand into library support #137

Open okuoku opened 4 years ago

okuoku commented 4 years ago

R7RS does not require load to support any library functionalities (only expressions and definitions are required to be supported).

For example, Cyclone support only import inside its eval.

Some implementations such as Chibi-scheme implements library system with its own macro system; such implementations can support expand-into-library macros. ie. they accept

(define-syntax library
  ;; that expands R7RS define-library
  )

and evaling libraries.