Prepare for psyntax-6.3..7.3 support.
* module/mes/psyntax-0.mes (ormap): New function. (eval): New function. (remprop): New function. ($sc-put-cte, $make-environment, environment?, syntax->list, syntax->vector, literal-identifier=?, $syntax-dispatch, eval-when): New variable.
This commit is contained in:
parent
8b172e3438
commit
40a6f2df34
|
@ -20,16 +20,8 @@
|
||||||
|
|
||||||
(define (interaction-environment) (current-module))
|
(define (interaction-environment) (current-module))
|
||||||
|
|
||||||
;; (define c:eval (assq-ref %builtins 'eval))
|
(define (eval x . environment)
|
||||||
;; (define (eval x . environment)
|
(eval-env x (if (null? environment) (current-module) (car environment))))
|
||||||
;; (display "***EVAL x=***=\n")
|
|
||||||
;; (display x)
|
|
||||||
;; (newline)
|
|
||||||
;; (c:eval (if (and (pair? x)
|
|
||||||
;; (equal? (car x) "noexpand"))
|
|
||||||
;; (cadr x)
|
|
||||||
;; (sc-expand x))
|
|
||||||
;; (interaction-environment)))
|
|
||||||
|
|
||||||
(define annotation? (lambda (x) #f))
|
(define annotation? (lambda (x) #f))
|
||||||
(define (self-evaluating? x)
|
(define (self-evaluating? x)
|
||||||
|
@ -41,6 +33,14 @@
|
||||||
(define sc-expand #f)
|
(define sc-expand #f)
|
||||||
(define sc-chi #f)
|
(define sc-chi #f)
|
||||||
(define sc-expand3 #f)
|
(define sc-expand3 #f)
|
||||||
|
(define $sc-put-cte #f)
|
||||||
|
(define $make-environment #f)
|
||||||
|
(define environment? #f)
|
||||||
|
(define syntax->list #f)
|
||||||
|
(define syntax->vector #f)
|
||||||
|
(define literal-identifier=? #f)
|
||||||
|
(define $syntax-dispatch #f)
|
||||||
|
(define eval-when #f)
|
||||||
(define install-global-transformer #f)
|
(define install-global-transformer #f)
|
||||||
(define syntax-dispatch #f)
|
(define syntax-dispatch #f)
|
||||||
(define syntax-error #f)
|
(define syntax-error #f)
|
||||||
|
@ -77,6 +77,7 @@
|
||||||
|
|
||||||
(define putprop #f)
|
(define putprop #f)
|
||||||
(define getprop #f)
|
(define getprop #f)
|
||||||
|
(define remprop #f)
|
||||||
(define properties-alist #f)
|
(define properties-alist #f)
|
||||||
|
|
||||||
(let ((properties '()))
|
(let ((properties '()))
|
||||||
|
@ -101,7 +102,11 @@
|
||||||
(cdr couple)
|
(cdr couple)
|
||||||
#f))
|
#f))
|
||||||
#f))))
|
#f))))
|
||||||
|
(set! remprop
|
||||||
|
(lambda (symbol key)
|
||||||
|
(putprop symbol key #f)))
|
||||||
(set! properties-alist (lambda () *sc-expander-alist*)))
|
(set! properties-alist (lambda () *sc-expander-alist*)))
|
||||||
|
|
||||||
;; (define fx+ +)
|
;; (define fx+ +)
|
||||||
;; (define fx- -)
|
;; (define fx- -)
|
||||||
;; (define fx= =)
|
;; (define fx= =)
|
||||||
|
|
Loading…
Reference in a new issue