[racket] syntax-case in r5rs

From: Jos Koot (jos.koot at telefonica.net)
Date: Thu Nov 17 11:41:46 EST 2011

How can I import Racket's versions of define-syntax and syntax-case into
r5rs?
I tried the following:
 
#lang r5rs
(#%require (only racket define-syntax syntax-case))
(define-syntax (a stx) (syntax-case stx () (_ #'here)))
 
Gives error: macro-transformer: only a `syntax-rules' form is allowed in:
(syntax here)
 
r5rs is not my choice. I use it for Phil Bewig's programming praxis.
 
Thanks, Jos
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.racket-lang.org/users/archive/attachments/20111117/33230690/attachment.html>

Posted on the users mailing list.