#| -*-Scheme-*-
-$Id: runtime.pkg,v 14.392 2001/12/20 06:49:06 cph Exp $
+$Id: runtime.pkg,v 14.393 2001/12/20 06:52:30 cph Exp $
Copyright (c) 1988-2001 Massachusetts Institute of Technology
guarantee-syntax-table
make-syntax-table
set-environment-syntax-table!
- syntax-table-define
- syntax-table-ref
syntax-table/copy
syntax-table/define
syntax-table/defined-names
#| -*-Scheme-*-
-$Id: syntab.scm,v 14.7 2001/12/19 01:39:41 cph Exp $
+$Id: syntab.scm,v 14.8 2001/12/20 06:52:49 cph Exp $
Copyright (c) 1988-1999, 2001 Massachusetts Institute of Technology
(cdr entry)
(loop (syntax-table/%parent table)))))))
-(define syntax-table-ref
- syntax-table/ref)
-
(define (syntax-table/define table name transform)
(let ((table (guarantee-syntax-table table 'SYNTAX-TABLE/DEFINE)))
(let ((entry (assq name (syntax-table/alist table))))
(cons (cons name transform)
(syntax-table/alist table)))))))
-(define syntax-table-define
- syntax-table/define)
-
(define (syntax-table/defined-names table)
(map car
(syntax-table/alist
#| -*-Scheme-*-
-$Id: syntax.scm,v 14.40 2001/12/20 06:49:28 cph Exp $
+$Id: syntax.scm,v 14.41 2001/12/20 06:52:03 cph Exp $
Copyright (c) 1988-2001 Massachusetts Institute of Technology
((pair? expression)
(if (not (list? expression))
(error "syntax-expression: not a valid expression" expression))
- (let ((transform (syntax-table-ref syntax-table (car expression))))
+ (let ((transform (syntax-table/ref syntax-table (car expression))))
(if transform
(if (primitive-syntaxer? transform)
(transform-apply (primitive-syntaxer/transform transform)
top-level?
(let ((make-definition
(lambda (name value)
- (if (syntax-table-ref *syntax-table* name)
+ (if (syntax-table/ref *syntax-table* name)
(syntax-error "redefinition of syntactic keyword" name))
(make-definition name value))))
(cond ((symbol? pattern)
top-level?
(if (not (symbol? name))
(syntax-error "illegal name" name))
- (syntax-table-define *syntax-table* name
+ (syntax-table/define *syntax-table* name
(syntax-eval (syntax-subexpression value)))
name)
(define (syntax/define-macro top-level? pattern . body)
top-level?
(let ((keyword (car pattern)))
- (syntax-table-define *syntax-table* keyword
+ (syntax-table/define *syntax-table* keyword
(syntax-eval (apply syntax/named-lambda #f pattern body)))
keyword))
#| -*-Scheme-*-
-$Id: studen.scm,v 1.10 1999/01/02 06:19:10 cph Exp $
+$Id: studen.scm,v 1.11 2001/12/20 06:51:21 cph Exp $
Copyright (c) 1987-1999 Massachusetts Institute of Technology
;; Now, hack the syntax (special form) table.
(let ((move
(lambda (from to)
- (syntax-table-define sicp-syntax-table to
- (or (syntax-table-ref system-global-syntax-table from)
+ (syntax-table/define sicp-syntax-table to
+ (or (syntax-table/ref system-global-syntax-table from)
(error "Missing syntactic keyword" from))))))
(for-each (lambda (name) (move name name))
'(