+1 for `syntax-parse`—it's thoroughly the most powerful (and yet somehow also the most ergonomic) way to write macros in any language thus far.
Wait, r6rs has proc macros? Where is that in the spec? I've only seen the `syntax-rules` bit.
Wait, r6rs has proc macros? Where is that in the spec? I've only seen the `syntax-rules` bit.
Look for `define-syntax`.
https://www.r6rs.org/final/html/r6rs/r6rs-Z-H-14.html#node_i... https://www.r6rs.org/final/html/r6rs/r6rs-Z-H-13.html