Subject: Re: syntax-rules macros with sub-macros
From: (Rob Warnock)
Date: 21 Nov 2000 01:40:10 GMT
Newsgroups: comp.lang.scheme
Message-ID: <8vcjpq$5dq7$>
David Bakhash  <> wrote:
| (Lars J. Aas) writes:
| > Does anyone know of a better way to structure macros with sub-macros
| > so the internal sub-macros are hidden from the toplevel environment
| > and shared between the (<pattern> <template>) rules?
| In Common Lisp, there's something called MACROLET, and it does a fine
| job of this exact thing, if I understand what you want correctly.  You 
| may consider finding an implementation of this in Scheme.

Well, for what it's worth, "let-syntax" and "letrec-syntax" are part
of the R5RS standard, so any Scheme implementing R5RS *should* provide
them (along with "define-syntax"). See section "4.3.1 Binding constructs
for syntactic keywords"...


Rob Warnock, 31-2-510
Network Engineering
Silicon Graphics, Inc.		Phone: 650-933-1673
1600 Amphitheatre Pkwy.		PP-ASEL-IA
Mountain View, CA  94043