[plt-scheme] Defining syntax inside the transformer environment
At Mon, 12 Dec 2005 04:34:13 -0500, Daniel Franke wrote:
> I've worked around the problem by putting lex-state in a separate
> module and then importing it via require-for-syntax. However, this
> seems like a kludge at best. Is there a better way of going about
> this? Something along the lines of define-macro-for-syntax?
For now, `define-macro-for-syntax' isn't supported, and using a
separate module is the usual solution.
I plan to eventually generalize `module' so that you can put
`define-syntax' inside `begin-for-syntax' (or inside a
`begin-for-syntax' that's inside a `begin-for-syntax', etc.) --- but
"eventually" is the operative word.
Matthew