[plt-scheme] define syntax

Jakub Piotr Cłapa jpc at pld-linux.org
Sat Nov 24 09:14:42 EST 2007


Day wrote:
> I have an interesting and curious question:
> 
> Is it possible to define define-syntax using Scheme (without using any
> higher macros, just scheme itself)?

Maybe you are looking for defmacro.ss from mzlib [1]? Even without this 
AFAIK define-syntax accepts any one argument function. This argument is 
a syntax object which can be transformed into datum if you don't mind 
the lack of higiene.

[1] http://pre.plt-scheme.org/docs/html/mzlib/mzlib-Z-H-18.html#node_chap_18

-- 
regards,
Jakub Piotr Cłapa


More information about the plt-scheme mailing list