#| -*-Scheme-*-
-$Id: make.scm,v 15.19 1992/09/14 23:18:10 cph Exp $
+$Id: make.scm,v 15.20 1992/09/21 20:35:24 cph Exp $
Copyright (c) 1991-92 Massachusetts Institute of Technology
(package/system-loader "6001" '() 'QUERY)
(load '("edextra" "floppy") (->environment '(edwin)))
((access initialize-package! (->environment '(student scode-rewriting))))
-(add-system! (make-system "6.001" 15 19 '()))
+(add-system! (make-system "6.001" 15 20 '()))
;;; Customize the runtime system:
(set! repl:allow-restart-notifications? false)
(set! repl:write-result-hash-numbers? false)
(set! *unparse-disambiguate-null-as-itself?* false)
+(set! *unparse-disambiguate-null-lambda-list?* true)
(set! *unparse-compound-procedure-names?* false)
(set! *pp-default-as-code?* true)
(set! *pp-named-lambda->define?* 'LAMBDA)
#| -*-Scheme-*-
-$Id: runtime.pkg,v 14.160 1992/09/18 19:05:24 cph Exp $
+$Id: runtime.pkg,v 14.161 1992/09/21 20:34:43 cph Exp $
Copyright (c) 1988-92 Massachusetts Institute of Technology
(export ()
*unparse-compound-procedure-names?*
*unparse-disambiguate-null-as-itself?*
+ *unparse-disambiguate-null-lambda-list?*
*unparse-primitives-by-name?*
*unparse-uninterned-symbols-by-name?*
*unparse-with-maximum-readability?*
#| -*-Scheme-*-
-$Header: /Users/cph/tmp/foo/mit-scheme/mit-scheme/v7/src/runtime/unpars.scm,v 14.27 1992/07/21 04:26:40 cph Exp $
+$Id: unpars.scm,v 14.28 1992/09/21 20:33:45 cph Exp $
Copyright (c) 1988-92 Massachusetts Institute of Technology
(set! *unparse-uninterned-symbols-by-name?* false)
(set! *unparse-with-maximum-readability?* false)
(set! *unparse-disambiguate-null-as-itself?* true)
+ (set! *unparse-disambiguate-null-lambda-list?* false)
(set! *unparse-compound-procedure-names?* true)
(set! system-global-unparser-table (make-system-global-unparser-table))
(set-current-unparser-table! system-global-unparser-table))
(define *unparse-uninterned-symbols-by-name?*)
(define *unparse-with-maximum-readability?*)
(define *unparse-disambiguate-null-as-itself?*)
+(define *unparse-disambiguate-null-lambda-list?*)
(define *unparse-compound-procedure-names?*)
(define system-global-unparser-table)
(define *current-unparser-table*)
(if prefix
(unparse-list/prefix-pair prefix pair)
(let ((method (unparse-list/unparser pair)))
- (if method
- (invoke-user-method method pair)
- (unparse-list pair))))))
+ (cond (method
+ (invoke-user-method method pair))
+ ((and *unparse-disambiguate-null-lambda-list?*
+ (eq? (car pair) 'LAMBDA)
+ (pair? (cdr pair))
+ (null? (cadr pair))
+ (pair? (cddr pair)))
+ (limit-unparse-depth
+ (lambda ()
+ (*unparse-char #\()
+ (*unparse-object (car pair))
+ (*unparse-string " ()")
+ (unparse-tail (cddr pair) 3)
+ (*unparse-char #\)))))
+ (else
+ (unparse-list pair)))))))
(define (unparse-list list)
(limit-unparse-depth
#| -*-Scheme-*-
-$Id: runtime.pkg,v 14.160 1992/09/18 19:05:24 cph Exp $
+$Id: runtime.pkg,v 14.161 1992/09/21 20:34:43 cph Exp $
Copyright (c) 1988-92 Massachusetts Institute of Technology
(export ()
*unparse-compound-procedure-names?*
*unparse-disambiguate-null-as-itself?*
+ *unparse-disambiguate-null-lambda-list?*
*unparse-primitives-by-name?*
*unparse-uninterned-symbols-by-name?*
*unparse-with-maximum-readability?*