Does Chez Scheme offer a standard macroexpand
implementation? If not, does some suitable replacement exist?
Asked
Active
Viewed 375 times
3

David Shaked
- 3,171
- 3
- 20
- 31
1 Answers
1
What do you mean by standard? There's expand
which expands a form supplied to it.

Wojciech Gac
- 1,538
- 1
- 16
- 30
-
1`expand` appears to expand all levels of macros - it's so detailed that it even expands `cond` into `if`. Is there something that expands only one level of macros? – Lassi Jan 01 '20 at 15:12
-
2they are looking for something like Clojure's [macroexpand-1](https://clojuredocs.org/clojure.core/macroexpand-1). – divs1210 Aug 04 '21 at 17:14
-
One can call the syntax transformers directly. Nothing is needed outside the R6RS standard. – Marc Dec 15 '22 at 16:06