mirror of
https://github.com/ashinn/chibi-scheme.git
synced 2025-05-19 05:39:18 +02:00
adding meta info for source file for (meta) library
This commit is contained in:
parent
2500569861
commit
05362f3d21
1 changed files with 6 additions and 6 deletions
|
@ -232,7 +232,7 @@
|
||||||
(body (cddr expr))
|
(body (cddr expr))
|
||||||
(tmp (rename 'tmp))
|
(tmp (rename 'tmp))
|
||||||
(this-module (rename '*this-module*))
|
(this-module (rename '*this-module*))
|
||||||
(add-module! (rename 'add-module!))
|
(_add-module! (rename 'add-module!))
|
||||||
(_make-module (rename 'make-module))
|
(_make-module (rename 'make-module))
|
||||||
(_define (rename 'meta-define))
|
(_define (rename 'meta-define))
|
||||||
(_lambda (rename 'lambda))
|
(_lambda (rename 'lambda))
|
||||||
|
@ -301,10 +301,10 @@
|
||||||
(,_else (lp (,_cdr ls) res)))))))
|
(,_else (lp (,_cdr ls) res)))))))
|
||||||
(,_set! ,this-module (,_quote ()))
|
(,_set! ,this-module (,_quote ()))
|
||||||
,@body
|
,@body
|
||||||
(,add-module! (,_quote ,name)
|
(,_add-module! (,_quote ,name)
|
||||||
(,_make-module (extract-exports)
|
(,_make-module (extract-exports)
|
||||||
#f
|
#f
|
||||||
(,_reverse ,this-module)))
|
(,_reverse ,this-module)))
|
||||||
(,_set! ,this-module ,tmp)
|
(,_set! ,this-module ,tmp)
|
||||||
(,(rename 'pop-this-path)))))))
|
(,(rename 'pop-this-path)))))))
|
||||||
|
|
||||||
|
@ -410,7 +410,7 @@
|
||||||
(cons '(chibi primitive)
|
(cons '(chibi primitive)
|
||||||
(make-module #f #f (lambda (env) (primitive-environment 7))))
|
(make-module #f #f (lambda (env) (primitive-environment 7))))
|
||||||
(cons '(meta)
|
(cons '(meta)
|
||||||
(make-module #f (current-environment) '()))
|
(make-module #f (current-environment) '((include "meta-7.scm"))))
|
||||||
(cons '(srfi 0)
|
(cons '(srfi 0)
|
||||||
(make-module (list 'cond-expand)
|
(make-module (list 'cond-expand)
|
||||||
(current-environment)
|
(current-environment)
|
||||||
|
|
Loading…
Add table
Reference in a new issue