mirror of
https://github.com/justinethier/cyclone.git
synced 2025-05-18 21:29:18 +02:00
Revise macro debugging section
This commit is contained in:
parent
25dc7b6357
commit
68e3fb3687
1 changed files with 3 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue