A big round of renamings.
authorChris Hanson <org/chris-hanson/cph>
Fri, 9 Feb 2018 04:39:12 +0000 (20:39 -0800)
committerChris Hanson <org/chris-hanson/cph>
Fri, 9 Feb 2018 04:39:12 +0000 (20:39 -0800)
25 files changed:
src/compiler/base/pmerly.scm
src/compiler/base/scode.scm
src/compiler/base/utils.scm
src/compiler/fggen/canon.scm
src/compiler/fggen/fggen.scm
src/ffi/ffi.pkg
src/ffi/syntax.scm
src/runtime/environment.scm
src/runtime/global.scm
src/runtime/host-adapter.scm
src/runtime/infutl.scm
src/runtime/lambda-list.scm
src/runtime/lambda.scm
src/runtime/make.scm
src/runtime/mit-macros.scm
src/runtime/mit-syntax.scm
src/runtime/runtime.pkg
src/runtime/scode.scm
src/runtime/syntax-environment.scm
src/runtime/syntax-output.scm
src/runtime/syntax.scm
src/runtime/unpars.scm
src/runtime/unsyn.scm
src/sf/gconst.scm
src/sf/usiexp.scm

index cef610cb83bc29c2db0ad86d1ff97e69682936e1..2556cb6f245145b52a0a96549cd6315d5b3231e3 100644 (file)
@@ -619,17 +619,17 @@ USA.
        (else (scode/make-conjunction t1 t2))))
 
 (define (scode/make-thunk body)
-  (scode/make-lambda lambda-tag:unnamed '() '() false '() '() body))
+  (scode/make-lambda scode-lambda-name:unnamed '() '() false '() '() body))
 
 (define (scode/let? obj)
   (and (scode/combination? obj)
        (let ((operator (scode/combination-operator obj)))
         (and (scode/lambda? operator)
-             (eq? lambda-tag:let (scode/lambda-name operator))))))
+             (eq? scode-lambda-name:let (scode/lambda-name operator))))))
 
 (define (scode/make-let names values declarations body)
   (scode/make-combination
-   (scode/make-lambda lambda-tag:let
+   (scode/make-lambda scode-lambda-name:let
                      names
                      '()
                      false
index 634700f4981553e1d612b04f5624fe1582e2db78..baf3b2764e413639e4da4876fda6946400ba2b0b 100644 (file)
@@ -60,7 +60,7 @@ USA.
   (scan-defines (scode/make-sequence body)
     (lambda (auxiliary declarations body)
       (scode/make-combination
-       (scode/make-lambda lambda-tag:let names '() false
+       (scode/make-lambda scode-lambda-name:let names '() false
                          auxiliary declarations body)
        values))))
 \f
index 62d005ac2fc0176b4520af094f429b04733457db..b600f5834751be53245393a7fe94340f2f863e0c 100644 (file)
@@ -60,14 +60,14 @@ USA.
           (loop (cdr items) passed (cons (car items) failed))))))
 
 (define (generate-label #!optional prefix)
-  (if (default-object? prefix) (set! prefix 'LABEL))
+  (if (default-object? prefix) (set! prefix 'label))
   (string->uninterned-symbol
    (canonicalize-label-name
     (string-append
      (symbol->string
-      (cond ((eq? prefix lambda-tag:unnamed) 'LAMBDA)
-           ((eq? prefix lambda-tag:let) 'LET)
-           ((eq? prefix lambda-tag:fluid-let) 'FLUID-LET)
+      (cond ((eq? prefix scode-lambda-name:unnamed) 'lambda)
+           ((eq? prefix scode-lambda-name:let) 'let)
+           ((eq? prefix scode-lambda-name:fluid-let) 'fluid-let)
            (else prefix)))
      "-"
      (number->string (generate-label-number))))))
index e233b32ec89ef635bd4b952fa1e109f7aa714045..cecfc2b24555c53c33d2745bc5c6a32a048e53be 100644 (file)
@@ -184,7 +184,7 @@ ARBITRARY:  The expression may be executed more than once.  It
   (define (normal)
     (scode/make-directive
      (scode/make-combination
-      (scode/make-lambda lambda-tag:let
+      (scode/make-lambda scode-lambda-name:let
                         (list environment-variable) '() false '()
                         '()
                         body)
@@ -723,7 +723,8 @@ ARBITRARY:  The expression may be executed more than once.  It
                     (let* ((env-code (scode/make-the-environment))
                            (nbody
                             (canonicalize/expression
-                             (unscan-defines auxiliary decls (canout-expr nbody))
+                             (unscan-defines auxiliary decls
+                                             (canout-expr nbody))
                              '()
                              (if (canonicalize/optimization-low? context)
                                  'FIRST-CLASS
@@ -757,13 +758,15 @@ ARBITRARY:        The expression may be executed more than once.  It
                           (scode/make-absolute-reference '*MAKE-ENVIRONMENT)
                           (cons* (scode/make-variable environment-variable)
                                  (list->vector
-                                  (cons lambda-tag:unnamed names))
+                                  (cons scode-lambda-name:unnamed names))
                                  (map scode/make-variable names)))))
 
                    (if (and (scode/the-environment? body)
                             (null? auxiliary))
                        env-code
-                       (let* ((uexpr (unscan-defines auxiliary decls (canout-expr nbody)))
+                       (let* ((uexpr
+                               (unscan-defines auxiliary decls
+                                               (canout-expr nbody)))
                               (nexpr
                                (canout-expr
                                 (canonicalize/expression
@@ -774,7 +777,8 @@ ARBITRARY:  The expression may be executed more than once.  It
                                      'TOP-LEVEL)))))
 
                           (if (canonicalize/optimization-low? context)
-                              (canonicalize/bind-environment nexpr env-code uexpr)
+                              (canonicalize/bind-environment nexpr env-code
+                                                             uexpr)
                               (scode/make-evaluation
                                (canonicalize/bind-environment
                                 nexpr
index 60765cc8d2c7b9182e2918d2e814227babfe83b4..d303e2310123aaf5dc35dc1eb4a515a8368eed1f 100644 (file)
@@ -453,7 +453,7 @@ USA.
          (return-3 '() '()
                    (scode/make-combination
                     (scode/make-lambda
-                     lambda-tag:let auxiliary '() #f names '()
+                     scode-lambda-name:let auxiliary '() #f names '()
                      (scode/make-sequence
                       (map* actions scode/make-assignment names values)))
                     (map (lambda (name)
@@ -889,7 +889,7 @@ USA.
     (ucode-primitive system-pair-cons)
     (list (ucode-type delayed)
          0
-         (scode/make-lambda lambda-tag:unnamed '() '() #f '() '()
+         (scode/make-lambda scode-lambda-name:unnamed '() '() #f '() '()
                             (scode/delay-expression expression))))))
 
 (define (generate/error-combination block continuation context expression)
index 35bbe9adb87967fbf53dff00ff940103231e396f..7bc6362b7cfee5b5f0af15ab84a22ebb1935acf3 100644 (file)
@@ -13,7 +13,7 @@ FFI System Packaging |#
          make-alien-function
          alien-function/filename)
   (import (runtime syntax)
-         syntactic-environment->runtime)
+         senv->runtime)
   (export ()
          c-include
          load-c-includes
index 11749b824d7b7a76836b08851240cb6a3ce474a6..10c8c211aaa104d153245f51a2c329c50956b1f3 100644 (file)
@@ -37,7 +37,7 @@ USA.
      (call-with-destructured-c-include-form
       form
       (lambda (library)
-       (let ((ienv (syntactic-environment->runtime usage-env)))
+       (let ((ienv (senv->runtime usage-env)))
          (if (and (environment-bound? ienv 'C-INCLUDES)
                   (environment-assigned? ienv 'C-INCLUDES))
              (let ((value (environment-lookup ienv 'C-INCLUDES))
@@ -504,7 +504,7 @@ USA.
 (define (find-c-includes env)
   ;; Returns the c-includes structure bound to 'C-INCLUDES in ENV.
   (guarantee syntactic-environment? env 'find-c-includes)
-  (let ((ienv (syntactic-environment->runtime env)))
+  (let ((ienv (senv->runtime env)))
     (if (and (environment-bound? ienv 'C-INCLUDES)
             (environment-assigned? ienv 'C-INCLUDES))
        (let ((includes (environment-lookup ienv 'C-INCLUDES)))
index 861322a9831fe100aade33d099206e1e0acf9c7b..f6062f2b5da2101b5578a5351831fef35425f0ba 100644 (file)
@@ -432,7 +432,9 @@ USA.
   (system-list->vector
    (ucode-type environment)
    (cons (system-pair-cons (ucode-type procedure)
-                          (make-slambda lambda-tag:unnamed names unspecific)
+                          (make-slambda scode-lambda-name:unnamed
+                                        names
+                                        unspecific)
                           environment)
         (if (eq? values 'DEFAULT)
             (let ((values (make-list (length names))))
index bc34ed172351c44002fa23cfb42989b6f00bc62b..21e871065677f5500a013b13bb1e4a46f791fe3e 100644 (file)
@@ -261,7 +261,7 @@ USA.
 \f
 (define user-initial-environment
   (*make-environment system-global-environment
-                    (vector lambda-tag:unnamed)))
+                    (vector scode-lambda-name:unnamed)))
 
 (define user-initial-prompt
   "]=>")
index 52c449c1a2a7a27e1d8274a603758fc439482c33..9d1e5aba3bf11e203c2db44ce8d49da243cd14ad 100644 (file)
@@ -70,6 +70,9 @@ USA.
 
     (provide-rename env 'random-byte-vector 'random-bytevector)
     (provide-rename env 'string-downcase 'string-foldcase)
+    (provide-rename env 'lambda-tag:unnamed 'scode-lambda-name:unnamed)
+    (provide-rename env 'lambda-tag:let 'scode-lambda-name:let)
+    (provide-rename env 'lambda-tag:fluid-let 'scode-lambda-name:fluid-let)
 
     (for-each (lambda (old-name)
                (provide-rename env old-name (symbol 'scode- old-name)))
index e60ca8b0e56e87763306c2a9d37946bc5e4d3f07..1805be592eea1d2654471ef22f0cf69dc756fee1 100644 (file)
@@ -348,10 +348,10 @@ USA.
         (symbol->string (cdr association)))))
 
 (define-deferred special-form-procedure-names
-  `((,lambda-tag:unnamed . LAMBDA)
-    (,lambda-tag:internal-lambda . LAMBDA)
-    (,lambda-tag:let . LET)
-    (,lambda-tag:fluid-let . FLUID-LET)))
+  `((,scode-lambda-name:unnamed . lambda)
+    (,scode-lambda-name:internal-lambda . lambda)
+    (,scode-lambda-name:let . let)
+    (,scode-lambda-name:fluid-let . fluid-let)))
 
 (define (compiled-procedure/lambda entry)
   (let ((procedure (compiled-entry/dbg-object entry)))
index d921a8c0a74578017fd3e3190bec0aa23f678159..9c1dd84ed1ae7c1fc00c339fc796735aa39f3583 100644 (file)
@@ -132,12 +132,12 @@ USA.
       ;; This should be fixed some day.
 
       ;; From lambda.scm
-      (eq? object lambda-tag:internal-lambda)
+      (eq? object scode-lambda-name:internal-lambda)
 
       ;; From syntax-output.scm
-      (eq? object lambda-tag:fluid-let)
-      (eq? object lambda-tag:let)
-      (eq? object lambda-tag:unnamed)
+      (eq? object scode-lambda-name:fluid-let)
+      (eq? object scode-lambda-name:let)
+      (eq? object scode-lambda-name:unnamed)
       ))
 \f
 (define (parse-mit-lambda-list lambda-list)
index abba9e13af49db5d674d04f3fa4c47302f54963a..ae6b5b3310cfaee3d8a00184c95066e5ea9be842 100644 (file)
@@ -554,11 +554,8 @@ USA.
 \f
 ;;;; Internal Lambda
 
-(define-integrable lambda-tag:internal-lambda
-  ((ucode-primitive string->symbol) "#[internal-lambda]"))
-
 (define-integrable (%make-internal-lambda names body)
-  (make-slambda lambda-tag:internal-lambda names body))
+  (make-slambda scode-lambda-name:internal-lambda names body))
 
 (define (make-auxiliary-lambda auxiliary body)
   (if (null? auxiliary)
@@ -568,7 +565,7 @@ USA.
 
 (define (internal-lambda? *lambda)
   (and (slambda? *lambda)
-       (eq? (slambda-name *lambda) lambda-tag:internal-lambda)))
+       (eq? (slambda-name *lambda) scode-lambda-name:internal-lambda)))
 
 (define (internal-lambda-bound? *lambda symbol)
   (and (slambda? *lambda)
index 538b424db84ea60299709e2b1103323b614e470b..ab1cb70d07301caf87a84d1049103e4cc120b72f 100644 (file)
@@ -71,7 +71,7 @@ USA.
 \f
 (let ((environment-for-package
        (*make-environment system-global-environment
-                         (vector lambda-tag:unnamed))))
+                         (vector scode-lambda-name:unnamed))))
 
 (define-integrable + (ucode-primitive integer-add))
 (define-integrable - (ucode-primitive integer-subtract))
index 3d3f09cd77c448d2b9812b890f86f280bea921b7..ad96cc5784b12d8f381266e257f0c3f79aba6f86 100644 (file)
@@ -315,7 +315,7 @@ USA.
                     (make-synthetic-identifier
                      (identifier->symbol (car binding))))
                   bindings)))
-        `((,r-named-lambda (,lambda-tag:unnamed ,@(map car bindings))
+        `((,r-named-lambda (,scode-lambda-name:unnamed ,@(map car bindings))
                            ((,r-lambda ,temps
                                        ,@(map (lambda (binding temp)
                                                 `(,r-set! ,(car binding)
@@ -337,7 +337,7 @@ USA.
           (r-lambda (rename 'LAMBDA))
           (r-named-lambda (rename 'NAMED-LAMBDA))
           (r-set!   (rename 'SET!)))
-       `((,r-named-lambda (,lambda-tag:unnamed ,@(map car bindings))
+       `((,r-named-lambda (,scode-lambda-name:unnamed ,@(map car bindings))
                          ,@(map (lambda (binding)
                                   `(,r-set! ,@binding)) bindings)
                          ((,r-lambda () ,@(cddr form))))
index 0c9e83181d0f5ee91b6d4964768b442af0e93387..558f10264b627c5697671d2357006350bf3adc84 100644 (file)
@@ -72,7 +72,7 @@ USA.
     (output/named-lambda (identifier->symbol (caadr form)) bvl body)))
 
 (define (compile/lambda bvl body environment)
-  (let ((environment (make-internal-syntactic-environment environment)))
+  (let ((environment (make-internal-senv environment)))
     ;; Force order -- bind names before classifying body.
     (let ((bvl
           (map-mit-lambda-list (lambda (identifier)
@@ -156,7 +156,7 @@ USA.
        (item (classify-form (caddr form) environment)))
     (keyword-binder environment name item)
     ;; User-defined macros at top level are preserved in the output.
-    (if (and (top-level-syntactic-environment? environment)
+    (if (and (senv-top-level? environment)
             (expander-item? item))
        (syntax-defn-item name (expander-item-expr item))
        (seq-item '()))))
@@ -178,7 +178,7 @@ USA.
    (lambda (form env)
      (let ((bindings (cadr form))
           (body (cddr form))
-          (binding-env (make-internal-syntactic-environment env)))
+          (binding-env (make-internal-senv env)))
        (let ((bindings
              (map (lambda (binding)
                     (variable-binder cons
@@ -192,7 +192,7 @@ USA.
                (seq-item
                 (classify-body
                  body
-                 (make-internal-syntactic-environment binding-env))))
+                 (make-internal-senv binding-env))))
            (lambda ()
              (output/let names
                          (map compile-expr-item values)
@@ -202,13 +202,13 @@ USA.
   (syntax-check '(keyword (* (identifier expression)) + form) form)
   (let ((bindings (cadr form))
        (body (cddr form))
-       (binding-env (make-internal-syntactic-environment env)))
+       (binding-env (make-internal-senv env)))
     (for-each (lambda (binding)
                (keyword-binder binding-env
                                (car binding)
                                (classify-form (cadr binding) env)))
              bindings)
-    (classify-body body (make-internal-syntactic-environment binding-env))))
+    (classify-body body (make-internal-senv binding-env))))
 
 (define keyword:let-syntax
   (classifier->keyword classifier:let-syntax))
@@ -217,7 +217,7 @@ USA.
   (syntax-check '(keyword (* (identifier expression)) + form) form)
   (let ((bindings (cadr form))
        (body (cddr form))
-       (binding-env (make-internal-syntactic-environment env)))
+       (binding-env (make-internal-senv env)))
     (for-each (lambda (binding)
                (reserve-identifier (car binding) binding-env))
              bindings)
@@ -229,7 +229,7 @@ USA.
              (map (lambda (binding)
                     (classify-form (cadr binding) binding-env))
                   bindings))
-    (classify-body body (make-internal-syntactic-environment binding-env))))
+    (classify-body body (make-internal-senv binding-env))))
 
 ;; TODO: this is a compiler rather than a macro because it uses the
 ;; special OUTPUT/DISJUNCTION.  Unfortunately something downstream in
@@ -267,7 +267,7 @@ USA.
 
 (define (compiler:the-environment form environment)
   (syntax-check '(KEYWORD) form)
-  (if (not (top-level-syntactic-environment? environment))
+  (if (not (senv-top-level? environment))
       (syntax-error "This form allowed only at top level:" form))
   (output/the-environment))
 
index 1ed232d7014e541565d7cd724a7f709fde4a1697..2ae00bf35c111d1934197d516f46578c5cd318e5 100644 (file)
@@ -2821,10 +2821,6 @@ USA.
          internal-lambda?
          lambda-names-vector
          make-slambda)
-  (export (runtime compiler-info)
-         lambda-tag:internal-lambda)
-  (export (runtime lambda-list)
-         lambda-tag:internal-lambda)
   (export (runtime unsyntaxer)
          lambda-immediate-body)
   (initialization (initialize-package!)))
@@ -3937,6 +3933,10 @@ USA.
          scode-disjunction-alternative
          scode-disjunction-predicate
          scode-disjunction?
+         scode-lambda-name:fluid-let
+         scode-lambda-name:internal-lambda
+         scode-lambda-name:let
+         scode-lambda-name:unnamed
          scode-quotation-expression
          scode-quotation?
          scode-sequence-actions
@@ -4461,13 +4461,12 @@ USA.
          bind-keyword
          bind-variable
          lookup-identifier
-         make-internal-syntactic-environment
-         make-keyword-syntactic-environment
-         make-partial-syntactic-environment
+         make-internal-senv
+         make-keyword-senv
+         make-partial-senv
          reserve-identifier
-         syntactic-environment->runtime
-         top-level-syntactic-environment?
-         syntactic-environment?))
+         senv->runtime
+         senv-top-level?))
 
 (define-package (runtime syntax check)
   (files "syntax-check")
@@ -4488,10 +4487,6 @@ USA.
 (define-package (runtime syntax output)
   (files "syntax-output")
   (parent (runtime syntax))
-  (export ()
-         lambda-tag:fluid-let
-         lambda-tag:let
-         lambda-tag:unnamed)
   (export (runtime syntax)
          output/access-assignment
          output/access-reference
index d5b4619078caac55e40e9adc0e7029b578a6fe9c..591d432778e7727077808f121073c17a2a4c6272 100644 (file)
@@ -414,6 +414,11 @@ USA.
   (cond ((slambda? lambda) (slambda-body lambda))
        ((xlambda? lambda) (xlambda-body lambda))
        (else (error:not-a scode-lambda? lambda 'scode-lambda-body))))
+
+(define scode-lambda-name:unnamed '|#[unnamed-procedure]|)
+(define scode-lambda-name:let '|#[let-procedure]|)
+(define scode-lambda-name:fluid-let '|#[fluid-let-procedure]|)
+(define scode-lambda-name:internal-lambda '|#[internal-lambda]|)
 \f
 ;;; Simple representation
 
index 84763ead75dcdd4db9d89b8365c90c2b0530660a..cd703cc808c9e7b422cf022fb672d4d144d9110f 100644 (file)
@@ -33,10 +33,10 @@ USA.
        ((environment? env) (%internal-runtime-senv env))
        (else (error:not-a environment? env 'runtime-environment->syntactic))))
 
-(define (syntactic-environment->runtime senv)
+(define (senv->runtime senv)
   ((senv-get-runtime senv)))
 
-(define (top-level-syntactic-environment? senv)
+(define (senv-top-level? senv)
   (eq? 'top-level ((senv-get-type senv))))
 
 (define ((id-dispatcher handle-raw caller) identifier senv)
@@ -157,7 +157,7 @@ USA.
 \f
 ;;; Keyword environments are used to make keywords that represent items.
 
-(define (make-keyword-syntactic-environment name item)
+(define (make-keyword-senv name item)
 
   (define (get-type)
     'keyword)
@@ -186,8 +186,8 @@ USA.
 ;;; Internal syntactic environments represent environments created by
 ;;; procedure application.
 
-(define (make-internal-syntactic-environment parent)
-  (guarantee syntactic-environment? parent 'make-internal-syntactic-environment)
+(define (make-internal-senv parent)
+  (guarantee syntactic-environment? parent 'make-internal-senv)
   (let ((bound '())
        (free '())
        (get-runtime (senv-get-runtime parent))
@@ -229,8 +229,8 @@ USA.
 ;;; Partial syntactic environments are used to implement syntactic
 ;;; closures that have free names.
 
-(define (make-partial-syntactic-environment free-ids free-senv bound-senv)
-  (let ((caller 'make-partial-syntactic-environment))
+(define (make-partial-senv free-ids free-senv bound-senv)
+  (let ((caller 'make-partial-senv))
     (guarantee list-of-unique-symbols? free-ids caller)
     (guarantee syntactic-environment? free-senv caller)
     (guarantee syntactic-environment? bound-senv caller))
index 34caa6ba0fe5423af2e4be3680c0b168cb1d7780..dcbdafed2a1174461d48740a41d73c86e649bfba 100644 (file)
@@ -30,7 +30,7 @@ USA.
 (declare (usual-integrations))
 \f
 (define (transformer-eval output environment)
-  (eval output (syntactic-environment->runtime environment)))
+  (eval output (senv->runtime environment)))
 
 (define (output/variable name)
   (make-scode-variable name))
@@ -51,7 +51,7 @@ USA.
     (if (scode-lambda? value)
        (lambda-components* value
          (lambda (name* required optional rest body)
-           (if (eq? name* lambda-tag:unnamed)
+           (if (eq? name* scode-lambda-name:unnamed)
                (make-lambda* name required optional rest body)
                value)))
        value)))
@@ -77,7 +77,7 @@ USA.
   (make-scode-combination operator operands))
 
 (define (output/lambda lambda-list body)
-  (output/named-lambda lambda-tag:unnamed lambda-list body))
+  (output/named-lambda scode-lambda-name:unnamed lambda-list body))
 
 (define (output/named-lambda name lambda-list body)
   (call-with-values (lambda () (parse-mit-lambda-list lambda-list))
@@ -97,7 +97,8 @@ USA.
   unspecific)
 \f
 (define (output/let names values body)
-  (output/combination (output/named-lambda lambda-tag:let names body) values))
+  (output/combination (output/named-lambda scode-lambda-name:let names body)
+                     values))
 
 (define (output/letrec names values body)
   (let ((temps
@@ -150,8 +151,4 @@ USA.
                          (list environment name value)))
 
 (define (output/runtime-reference name)
-  (output/access-reference name system-global-environment))
-
-(define lambda-tag:unnamed '|#[unnamed-procedure]|)
-(define lambda-tag:let '|#[let-procedure]|)
-(define lambda-tag:fluid-let '|#[fluid-let-procedure]|)
\ No newline at end of file
+  (output/access-reference name system-global-environment))
\ No newline at end of file
index 9673672e22dc73fed72fdd2d661327de5a750c67..e560dc16ff80b6fe6e0601c0a8ab7dba70c95095 100644 (file)
@@ -54,46 +54,46 @@ USA.
             (runtime-environment->syntactic environment))))
     (with-identifier-renaming
      (lambda ()
-       (if (top-level-syntactic-environment? senv)
+       (if (senv-top-level? senv)
           (compile-top-level-body (classify-body forms senv))
           (output/sequence
            (map (lambda (expr)
                   (compile-expr expr senv))
                 forms)))))))
 
-(define (compile-expr expression environment)
-  (compile-expr-item (classify-form expression environment)))
+(define (compile-expr expr senv)
+  (compile-expr-item (classify-form expr senv)))
 \f
 ;;;; Classifier
 
-(define (classify-form form environment)
+(define (classify-form form senv)
   (cond ((identifier? form)
-        (lookup-identifier form environment))
+        (lookup-identifier form senv))
        ((syntactic-closure? form)
         (classify-form
          (syntactic-closure-form form)
-         (make-partial-syntactic-environment (syntactic-closure-free form)
-                                             environment
-                                             (syntactic-closure-senv form))))
+         (make-partial-senv (syntactic-closure-free form)
+                            senv
+                            (syntactic-closure-senv form))))
        ((pair? form)
-        (let ((item (classify-form (car form) environment)))
+        (let ((item (classify-form (car form) senv)))
           (cond ((classifier-item? item)
-                 ((classifier-item-impl item) form environment))
+                 ((classifier-item-impl item) form senv))
                 ((compiler-item? item)
                  (expr-item
                   (let ((compiler (compiler-item-impl item)))
                     (lambda ()
-                      (compiler form environment)))))
+                      (compiler form senv)))))
                 ((expander-item? item)
-                 (classify-form ((expander-item-impl item) form environment)
-                                environment))
+                 (classify-form ((expander-item-impl item) form senv)
+                                senv))
                 (else
                  (if (not (list? (cdr form)))
                      (syntax-error "Combination must be a proper list:" form))
                  (expr-item
                   (let ((items
                          (map (lambda (expr)
-                                (classify-form expr environment))
+                                (classify-form expr senv))
                               (cdr form))))
                     (lambda ()
                       (output/combination
@@ -102,14 +102,14 @@ USA.
        (else
         (expr-item (lambda () (output/constant form))))))
 
-(define (classify-body forms environment)
+(define (classify-body forms senv)
   ;; Syntactic definitions affect all forms that appear after them, so classify
   ;; FORMS in order.
   (seq-item
    (let loop ((forms forms) (items '()))
      (if (pair? forms)
         (loop (cdr forms)
-              (reverse* (item->list (classify-form (car forms) environment))
+              (reverse* (item->list (classify-form (car forms) senv))
                         items))
         (reverse! items)))))
 \f
@@ -284,7 +284,7 @@ USA.
   (item->keyword (compiler-item compiler)))
 
 (define (item->keyword item)
-  (close-syntax 'keyword (make-keyword-syntactic-environment 'keyword item)))
+  (close-syntax 'keyword (make-keyword-senv 'keyword item)))
 
 (define (capture-syntactic-environment expander)
   `(,(classifier->keyword
index 394bd352bfa827edea3db441a12e42dcac8f88de..d32b6df3996ff2a77f387ca9c55938401a310715 100644 (file)
@@ -725,7 +725,7 @@ USA.
         (lambda-components* (procedure-lambda procedure)
           (lambda (name required optional rest body)
             required optional rest body
-            (and (not (eq? name lambda-tag:unnamed))
+            (and (not (eq? name scode-lambda-name:unnamed))
                  (lambda (context*)
                    (*unparse-object name context*))))))))
 
index f35f3071e07e85f354aff6343ce1b0b01637eafd..4320708263228bd5b855314d5458b36f22322405 100644 (file)
@@ -399,7 +399,7 @@ USA.
                                       (unsyntax-lambda-body environment* body)))))))
 
 (define (collect-lambda name bvl body)
-  (if (eq? name lambda-tag:unnamed)
+  (if (eq? name scode-lambda-name:unnamed)
       `(LAMBDA ,bvl ,@body)
       `(NAMED-LAMBDA (,name . ,bvl) ,@body)))
 
@@ -461,8 +461,8 @@ USA.
                  (if (and (null? optional)
                           (not rest)
                           (= (length required) (length operands)))
-                     (if (or (eq? name lambda-tag:unnamed)
-                             (eq? name lambda-tag:let))
+                     (if (or (eq? name scode-lambda-name:unnamed)
+                             (eq? name scode-lambda-name:let))
                          `(LET ,(unsyntax-let-bindings environment required operands)
                             ,@(with-bindings environment operator
                                              (lambda (environment*)
index afdc8aa38626642ca093cfa950a7709caa5ee7d9..6b4cc28f7c3bc8be725510624d41e2a53c46499b 100644 (file)
@@ -33,7 +33,7 @@ USA.
   '(CHAR-BITS-LIMIT
     CHAR-CODE-LIMIT
     FALSE
-    LAMBDA-TAG:UNNAMED                 ;needed for cold load
+    scode-lambda-name:unnamed          ;needed for cold load
     SYSTEM-GLOBAL-ENVIRONMENT          ;suppresses warnings about (access ...)
     THE-EMPTY-STREAM
     TRUE
index 4f2feae4390ab3b0d8cffddb6e5ed977faed0ec8..9f392a898f2146e5d98bcc19fa3d66d2bdc2f6b6 100644 (file)
@@ -46,7 +46,7 @@ USA.
                      (let ((variable (variable/make&bind! block name)))
                        (procedure/make
                         #f
-                        block lambda-tag:let (list variable) '() #f
+                        block scode-lambda-name:let (list variable) '() #f
                         (make-body block
                                    (reference/make #f block variable)))))
                    (list operand)))
@@ -350,11 +350,11 @@ USA.
        block
        (procedure/make
        #f
-       block lambda-tag:let variables '() #f
+       block scode-lambda-name:let variables '() #f
        (let ((block (block/make block #t '())))
          (let ((variable (variable/make&bind! block 'RECEIVER)))
            (procedure/make
-            #f block lambda-tag:unnamed (list variable) '() #f
+            #f block scode-lambda-name:unnamed (list variable) '() #f
             (declaration/make
              #f
              ;; The receiver is used only once, and all its operand