mini-start.scm 744 B

1234567891011121314151617181920
  1. ; Copyright (c) 1993-2008 by Richard Kelsey and Jonathan Rees. See file COPYING.
  2. ; Start up a system that has reified packages.
  3. ; COMMAND-PROCESSOR might be either the miniature one or the real one.
  4. (define (start structs-thunk)
  5. (usual-resumer
  6. (lambda (arg)
  7. (initialize-interaction-environment! (structs-thunk))
  8. (command-processor #f arg))))
  9. (define (initialize-interaction-environment! structs)
  10. (let ((scheme (cdr (assq 'scheme structs))))
  11. (let ((tower (delay (cons eval (scheme-report-environment 5)))))
  12. (set-interaction-environment!
  13. (make-simple-package (map cdr structs) #t tower 'interaction))
  14. (set-scheme-report-environment!
  15. 5
  16. (make-simple-package (list scheme) #t tower 'r5rs)))))