#| -*-Scheme-*-
-$Header: /Users/cph/tmp/foo/mit-scheme/mit-scheme/v7/src/sf/make.scm,v 3.14 1987/12/23 04:22:11 cph Rel $
+$Header: /Users/cph/tmp/foo/mit-scheme/mit-scheme/v7/src/sf/make.scm,v 3.15 1988/02/28 23:00:06 cph Exp $
-Copyright (c) 1987 Massachusetts Institute of Technology
+Copyright (c) 1988 Massachusetts Institute of Technology
This material was developed by the Scheme project at the Massachusetts
Institute of Technology, Department of Electrical Engineering and
\f
(define sf)
(define sfu? false)
+(define sf/set-default-syntax-table!)
(define sf/set-file-syntax-table!)
(define sf/add-file-declarations!)
(make-environment
(define :name "SF")
(define :version 3)
- (define :modification 14)
+ (define :modification 15)
(define :files)
(define :files-lists
#| -*-Scheme-*-
-$Header: /Users/cph/tmp/foo/mit-scheme/mit-scheme/v7/src/sf/toplev.scm,v 3.4 1987/06/30 21:45:39 cph Rel $
+$Header: /Users/cph/tmp/foo/mit-scheme/mit-scheme/v7/src/sf/toplev.scm,v 3.5 1988/02/28 22:59:02 cph Exp $
-Copyright (c) 1987 Massachusetts Institute of Technology
+Copyright (c) 1988 Massachusetts Institute of Technology
This material was developed by the Scheme project at the Massachusetts
Institute of Technology, Department of Electrical Engineering and
(fluid-let ((wrapping-hook wrap-with-control-point))
(syntax-file input-string bin-string spec-string)))
\f
+(define (sf/set-default-syntax-table! syntax-table)
+ (if (or (false? syntax-table)
+ (syntax-table? syntax-table))
+ (set! default-syntax-table syntax-table)
+ (error "Illegal syntax table" syntax-table)))
+
(define (sf/set-file-syntax-table! pathname syntax-table)
(pathname-map/insert! file-info/syntax-table
(pathname/normalize pathname)
(return-2 (pathname-map/lookup file-info/syntax-table
pathname
identity-procedure
- (lambda () false))
+ (lambda () default-syntax-table))
(file-info/get-declarations pathname))))
(define (file-info/get-declarations pathname)
(define file-info/syntax-table
(pathname-map/make))
+(define default-syntax-table
+ false)
+
(define file-info/declarations
(pathname-map/make))
\f
#| -*-Scheme-*-
-$Header: /Users/cph/tmp/foo/mit-scheme/mit-scheme/v8/src/sf/make.scm,v 3.14 1987/12/23 04:22:11 cph Rel $
+$Header: /Users/cph/tmp/foo/mit-scheme/mit-scheme/v8/src/sf/make.scm,v 3.15 1988/02/28 23:00:06 cph Exp $
-Copyright (c) 1987 Massachusetts Institute of Technology
+Copyright (c) 1988 Massachusetts Institute of Technology
This material was developed by the Scheme project at the Massachusetts
Institute of Technology, Department of Electrical Engineering and
\f
(define sf)
(define sfu? false)
+(define sf/set-default-syntax-table!)
(define sf/set-file-syntax-table!)
(define sf/add-file-declarations!)
(make-environment
(define :name "SF")
(define :version 3)
- (define :modification 14)
+ (define :modification 15)
(define :files)
(define :files-lists
#| -*-Scheme-*-
-$Header: /Users/cph/tmp/foo/mit-scheme/mit-scheme/v8/src/sf/toplev.scm,v 3.4 1987/06/30 21:45:39 cph Rel $
+$Header: /Users/cph/tmp/foo/mit-scheme/mit-scheme/v8/src/sf/toplev.scm,v 3.5 1988/02/28 22:59:02 cph Exp $
-Copyright (c) 1987 Massachusetts Institute of Technology
+Copyright (c) 1988 Massachusetts Institute of Technology
This material was developed by the Scheme project at the Massachusetts
Institute of Technology, Department of Electrical Engineering and
(fluid-let ((wrapping-hook wrap-with-control-point))
(syntax-file input-string bin-string spec-string)))
\f
+(define (sf/set-default-syntax-table! syntax-table)
+ (if (or (false? syntax-table)
+ (syntax-table? syntax-table))
+ (set! default-syntax-table syntax-table)
+ (error "Illegal syntax table" syntax-table)))
+
(define (sf/set-file-syntax-table! pathname syntax-table)
(pathname-map/insert! file-info/syntax-table
(pathname/normalize pathname)
(return-2 (pathname-map/lookup file-info/syntax-table
pathname
identity-procedure
- (lambda () false))
+ (lambda () default-syntax-table))
(file-info/get-declarations pathname))))
(define (file-info/get-declarations pathname)
(define file-info/syntax-table
(pathname-map/make))
+(define default-syntax-table
+ false)
+
(define file-info/declarations
(pathname-map/make))
\f