From 68e3fb3687a8cd241098f857a2ecc874a55b38b8 Mon Sep 17 00:00:00 2001 From: Justin Ethier Date: Tue, 17 Aug 2021 04:21:20 -0400 Subject: [PATCH] Revise macro debugging section --- docs/User-Manual.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/docs/User-Manual.md b/docs/User-Manual.md index 5744d2f0..6eaa9395 100644 --- a/docs/User-Manual.md +++ b/docs/User-Manual.md @@ -192,8 +192,7 @@ This macro system provides the convenience functions `(rename identifier)` to hy ## Debugging -- A file may be compiled with the `-t` option which will write all of the intermediate transformations - including macro expansions - out to the `.c` file. -- From the interpreter one can use `expand`: +- From the interpreter one can use `expand` to perform macro expansion on the given expression: cyclone> (expand '(when #t (+ 1 2 3))) (if #t ((lambda () (+ 1 2 3))) ) @@ -208,6 +207,8 @@ This macro system provides the convenience functions `(rename identifier)` to hy ((lambda () ,@(cddr exp))))) '(when #t (write 1) (write 2)) #f #f)) +- Finally, a Scheme file may be compiled with the `-t` option to write all of the intermediate transformations - including macro expansions - out to the corresponding `.c` file. + # Multithreaded Programming ## Overview