src/middleware/macroexpand.lisp @ 9f3dbec1414f

Clean up the ASD file
author Steve Losh <steve@stevelosh.com>
date Sat, 09 Apr 2016 20:47:56 +0000
parents d74fc3dab8fa
children 9d3d9514dbd8
(in-package #:nrepl)

(define-middleware wrap-macroexpand "macroexpand" message
  (let ((form (read-from-string (fset:lookup message "form"))))
    (respond message
             (make-map
               "status" '("done")
               "macroexpand" (format nil "~A" (macroexpand form))
               "macroexpand-1" (format nil "~A" (macroexpand-1 form))))))