(call-compiler
(lambda ()
(let ((env (buffer-env)))
- (scode-eval (compile-scode (syntax `(begin ,@sexps) env) #t)
+ (scode-eval ((environment-lookup #f 'compile-scode)
+ (syntax `(begin ,@sexps) env)
+ #t)
env))))))
(define (snarf-string string)
(lambda ()
(with-output-to-repl socket
(lambda ()
- (compile-file file)))))
+ ((environment-lookup #f 'compile-file) file)))))
(if (elisp-true? load?)
(swank:load-file socket
(pathname-new-type file "com"))))
socket
(with-output-to-string
(lambda ()
- (compiler:disassemble
+ ((environment-lookup #f 'compiler:disassemble)
(eval (read-from-string string)
(buffer-env))))))
(stream (iline "block" (compiled-entry/block o))
(with-output-to-string
(lambda ()
- (compiler:disassemble o)))))))
+ ((environment-lookup #f 'compiler:disassemble) o)))))))
(define (inspect-code-block block)
(let loop ((i (compiled-code-block/constants-start block)))
(iline "env" (compiled-code-block/environment block))
(with-output-to-string
(lambda ()
- (compiler:disassemble block)))))))
+ ((environment-lookup #f 'compiler:disassemble) block)))))))
(define (inspect-scode o)
(stream (pprint-to-string o)))