mirror of
https://github.com/ashinn/chibi-scheme.git
synced 2025-07-09 22:17:34 +02:00
Trying to load libraries for scribble doc examples.
This commit is contained in:
parent
4e75fbab49
commit
732df3a136
1 changed files with 3 additions and 1 deletions
|
@ -331,7 +331,9 @@
|
||||||
(lib-name (library-name (car lib+files)))
|
(lib-name (library-name (car lib+files)))
|
||||||
(exports (cond ((assq 'export (cdar lib+files)) => cdr) (else '())))
|
(exports (cond ((assq 'export (cdar lib+files)) => cdr) (else '())))
|
||||||
(mod (guard (exn (else #f))
|
(mod (guard (exn (else #f))
|
||||||
#f))
|
(begin
|
||||||
|
(load path (environment '(meta)))
|
||||||
|
(load-module lib-name))))
|
||||||
(defs (map (lambda (x)
|
(defs (map (lambda (x)
|
||||||
(let ((val (and mod (module-ref mod x))))
|
(let ((val (and mod (module-ref mod x))))
|
||||||
`(,x ,val ,(object-source val))))
|
`(,x ,val ,(object-source val))))
|
||||||
|
|
Loading…
Add table
Reference in a new issue