#| -*-Scheme-*-
-$Id: macros.scm,v 4.25 2002/02/08 03:55:01 cph Exp $
+$Id: macros.scm,v 4.26 2002/02/09 05:43:15 cph Exp $
Copyright (c) 1988-1999, 2001, 2002 Massachusetts Institute of Technology
(if (syntax-match? '((* IDENTIFIER) * EXPRESSION) (cdr form))
(let ((names (cadr form))
(body (cddr form)))
- `(,(make-syntactic-closure environment '() 'BEGIN)
+ `(,(close-syntax 'BEGIN environment)
,@(map (let ((r-define
- (make-syntactic-closure environment '() 'DEFINE)))
+ (close-syntax 'DEFINE environment)))
(lambda (name)
`(,r-define ,name)))
names)
- (,(make-syntactic-closure environment '() 'LET) () ,@body)))
+ (,(close-syntax 'LET environment) () ,@body)))
(ill-formed-syntax form)))))
(define-syntax define-export
(rsc-macro-transformer
(lambda (form environment)
(cond ((syntax-match? '(IDENTIFIER EXPRESSION) (cdr form))
- `(,(make-syntactic-closure environment '() 'SET!)
+ `(,(close-syntax 'SET! environment)
,@(cdr form)))
((syntax-match? '((IDENTIFIER . MIT-BVL) + EXPRESSION) (cdr form))
- `(,(make-syntactic-closure environment '() 'SET!)
+ `(,(close-syntax 'SET! environment)
,(caadr form)
- (,(make-syntactic-closure environment '() 'NAMED-LAMBDA)
+ (,(close-syntax 'NAMED-LAMBDA environment)
,@(cdr form))))
(else
(ill-formed-syntax form))))))
;;; -*-Scheme-*-
;;;
-;;; $Id: clsmac.scm,v 1.8 2002/02/03 03:38:54 cph Exp $
+;;; $Id: clsmac.scm,v 1.9 2002/02/09 05:37:59 cph Exp $
;;;
;;; Copyright (c) 1986, 1989, 1999, 2001, 2002 Massachusetts Institute of Technology
;;;
(name->class (identifier->symbol superclass)))
variables)
;; Load-time definition.
- `(,(make-syntactic-closure environment '() 'DEFINE)
+ `(,(close-syntax 'DEFINE environment)
,name
- (,(make-syntactic-closure environment '() 'MAKE-CLASS)
+ (,(close-syntax 'MAKE-CLASS environment)
',(identifier->symbol name)
,superclass
',variables)))
(lambda (form environment)
(let ((finish
(lambda (name operation expression)
- `(,(make-syntactic-closure environment '() 'CLASS-METHOD-DEFINE)
+ `(,(close-syntax 'CLASS-METHOD-DEFINE environment)
,name
',operation
,expression))))
(identifier? (cadr (caddr form))))
(finish (cadr form)
(car (caddr form))
- `(,(make-syntactic-closure environment '() 'NAMED-LAMBDA)
+ `(,(close-syntax 'NAMED-LAMBDA environment)
,(caddr form)
- (,(make-syntactic-closure environment '()
- 'WITH-INSTANCE-VARIABLES)
+ (,(close-syntax 'WITH-INSTANCE-VARIABLES environment)
,(cadr form)
,(cadr (caddr form))
()
(compile/subexpression self environment history select-caddr)
free-names
(compile/subexpression
- `(,(make-syntactic-closure system-global-environment '() 'BEGIN)
- ,@body)
+ `(,(close-syntax 'BEGIN system-global-environment) ,@body)
environment
history
select-cddddr)))
#| -*-Scheme-*-
-$Id: defstr.scm,v 14.38 2002/02/03 03:38:55 cph Exp $
+$Id: defstr.scm,v 14.39 2002/02/09 05:40:39 cph Exp $
Copyright (c) 1988-1999, 2001, 2002 Massachusetts Institute of Technology
(close (parser-context/name context) context))
(define (close name context)
- (make-syntactic-closure (parser-context/environment context) '() name))
+ (close-syntax name (parser-context/environment context)))
\f
(define (apply-option-transformers options context)
(let loop ((options options))
;;;; Code Generation
(define (absolute name context)
- (make-syntactic-closure (parser-context/closing-environment context) '()
- `(ACCESS ,name #F)))
+ (close-syntax `(ACCESS ,name #F)
+ (parser-context/closing-environment context)))
(define (accessor-definitions structure)
(let ((context (structure/context structure)))
#| -*-Scheme-*-
-$Id: toplev.scm,v 4.23 2002/02/03 03:38:58 cph Exp $
+$Id: toplev.scm,v 4.24 2002/02/09 05:41:31 cph Exp $
Copyright (c) 1988-2002 Massachusetts Institute of Technology
(mark-phase "Syntax")
(syntax* (if (null? declarations)
s-expressions
- (cons (cons (make-syntactic-closure system-global-environment
- '()
- 'DECLARE)
+ (cons (cons (close-syntax 'DECLARE system-global-environment)
declarations)
s-expressions))
environment))
;;; -*-Scheme-*-
;;;
-;;; $Id: macros.scm,v 1.13 2002/02/03 03:38:58 cph Exp $
+;;; $Id: macros.scm,v 1.14 2002/02/09 05:42:02 cph Exp $
;;;
;;; Copyright (c) 1993-2002 Massachusetts Institute of Technology
;;;
body))))
(values body
(let ((l
- (syntax `(,(make-syntactic-closure environment '()
- 'LAMBDA)
+ (syntax `(,(close-syntax 'LAMBDA environment)
(CALL-NEXT-METHOD)
,@body)
instance-environment)))