<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content="text/html; charset=us-ascii" http-equiv=Content-Type>
<META name=GENERATOR content="MSHTML 9.00.8112.16437"></HEAD>
<BODY>
<DIV><FONT size=2 face=Arial><SPAN class=598103816-17112011>How can I import
Racket's versions of define-syntax and syntax-case into
r5rs?</SPAN></FONT></DIV>
<DIV><FONT size=2 face=Arial><SPAN class=598103816-17112011>I tried the
following:</SPAN></FONT></DIV>
<DIV><FONT size=2 face=Arial><SPAN
class=598103816-17112011></SPAN></FONT> </DIV>
<DIV><FONT size=2 face=Arial><SPAN class=598103816-17112011>#lang
r5rs<BR>(#%require (only racket define-syntax syntax-case))</SPAN></FONT></DIV>
<DIV><FONT size=2 face=Arial><SPAN class=598103816-17112011>(define-syntax (a
stx) (syntax-case stx () (_ #'here)))</SPAN></FONT></DIV>
<DIV> </DIV>
<DIV><FONT size=2 face=Arial><SPAN class=598103816-17112011>Gives error:
macro-transformer: only a `syntax-rules' form is allowed in: (syntax
here)</SPAN></FONT></DIV>
<DIV><FONT size=2 face=Arial><SPAN
class=598103816-17112011></SPAN></FONT> </DIV>
<DIV><FONT size=2 face=Arial><SPAN class=598103816-17112011>r5rs is not my
choice. I use it for Phil Bewig's programming praxis.</SPAN></FONT></DIV>
<DIV><FONT size=2 face=Arial><SPAN
class=598103816-17112011></SPAN></FONT> </DIV>
<DIV><FONT size=2 face=Arial><SPAN class=598103816-17112011>Thanks,
Jos</SPAN></FONT></DIV></BODY></HTML>