#| -*-Scheme-*-
-$Id: global.scm,v 14.48 1995/05/03 21:37:11 adams Exp $
+$Id: global.scm,v 14.49 1998/04/30 21:28:38 cph Exp $
Copyright (c) 1988-93 Massachusetts Institute of Technology
(define apply (ucode-primitive apply 2))
(define (eval expression environment)
- (extended-scode-eval (syntax expression system-global-syntax-table)
+ (extended-scode-eval (syntax expression
+ (environment-syntax-table environment))
environment))
(define (scode-eval scode environment)
#| -*-Scheme-*-
-$Id: runtime.pkg,v 14.297 1998/04/30 18:06:04 cph Exp $
+$Id: runtime.pkg,v 14.298 1998/04/30 21:28:17 cph Exp $
Copyright (c) 1988-98 Massachusetts Institute of Technology
(files "syntax")
(parent ())
(export ()
+ environment-syntax-table
hook/syntax-expression
lambda-tag:fluid-let
lambda-tag:let
lambda-tag:make-environment
lambda-tag:unnamed
make-syntax-closure
+ set-environment-syntax-table!
syntax
syntax*
syntax-closure/expression
#| -*-Scheme-*-
-$Id: syntax.scm,v 14.28 1997/12/02 05:53:21 adams Exp $
+$Id: syntax.scm,v 14.29 1998/04/30 21:28:01 cph Exp $
-Copyright (c) 1988-97 Massachusetts Institute of Technology
+Copyright (c) 1988-98 Massachusetts Institute of Technology
This material was developed by the Scheme project at the Massachusetts
Institute of Technology, Department of Electrical Engineering and
(make-syntax-table system-global-syntax-table))
(set! *disallow-illegal-definitions?* #t)
(set! hook/syntax-expression default/syntax-expression)
+ (set-environment-syntax-table! system-global-environment
+ system-global-syntax-table)
unspecific)
(define system-global-syntax-table)
(define (syntax/top-level?)
*syntax-top-level?*)
+
+(define (environment-syntax-table environment)
+ (lexical-reference environment syntax-table-tag))
+
+(define (set-environment-syntax-table! environment table)
+ (local-assignment environment syntax-table-tag table))
+
+(define-integrable syntax-table-tag
+ ((ucode-primitive string->symbol)
+ "#[(runtime syntax-table)syntax-table-tag]"))
\f
(define-integrable (syntax-subsequence expressions)
(syntax-sequence #f expressions))
#| -*-Scheme-*-
-$Id: global.scm,v 14.53 1997/07/09 14:40:07 adams Exp $
+$Id: global.scm,v 14.54 1998/04/30 21:28:12 cph Exp $
Copyright (c) 1988-1996 Massachusetts Institute of Technology
(define apply (ucode-primitive apply 2))
(define (eval expression environment)
- (extended-scode-eval (syntax expression system-global-syntax-table)
+ (extended-scode-eval (syntax expression
+ (environment-syntax-table environment))
environment))
(define (scode-eval scode environment)
#| -*-Scheme-*-
-$Id: runtime.pkg,v 14.303 1998/04/30 18:05:39 cph Exp $
+$Id: runtime.pkg,v 14.304 1998/04/30 21:28:23 cph Exp $
Copyright (c) 1988-98 Massachusetts Institute of Technology
(files "syntax")
(parent ())
(export ()
+ environment-syntax-table
hook/syntax-expression
lambda-tag:fluid-let
lambda-tag:let
lambda-tag:make-environment
lambda-tag:unnamed
make-syntax-closure
+ set-environment-syntax-table!
syntax
syntax*
syntax-closure/expression