add verbose-app

This commit is contained in:
Matthew Butterick 2016-09-02 11:42:38 -07:00
parent 9a8b95a9f0
commit f30922a7dc

View File

@ -0,0 +1,10 @@
#lang br
(require (prefix-in br: (only-in br #%app)))
(provide #%app)
(define-macro (#%app APP ARG ...)
#'(let ()
(br:#%app displayln (br:#%app format "handling subexpressions in ~a" '(APP ARG ...)))
(define result (br:#%app APP ARG ...))
(br:#%app displayln (br:#%app format "evaluating ~a = ~a" '(APP ARG ...) result ))
result))