Subject: Re: macro and extend-syntax
From: (Rob Warnock)
Date: 1998/11/01
Newsgroups: comp.lang.scheme
Message-ID: <71hi5h$>
Dr. Alan Bond <> wrote:
| I'm teaching Scheme but none of the various Scheme systems we have
| installed, namely scm, mit-scheme and elk do not seem to have
| either macro or extend-syntax.

SCM has "defmacro" builtin, and that's quite sufficient to load the R4RS
macros in SLIB (q.v.).

Elk has a "define-macro" that is sufficient to trivially define "defmacro",
and from there...

Also, MzScheme has a "define-macro" (trivially different than Elk's),
so you could also go the SLIB route, though MzScheme comes with its
own define-syntax/syntax-rules implementation in its library.

[Dunno 'bout MIT-Scheme.]

| Do macro facilities have different names in these systems?

The name for the lowest-level macro facility does vary widely among
implementations, but there's (almost) always one there if you look
long enough, and it's almost always good enough to let you bootstrap
up the SLIB R4RS macros, if nothing else.


Rob Warnock, 8L-855
Applied Networking
Silicon Graphics, Inc.		Phone: 650-933-1673
2011 N. Shoreline Blvd.		FAX: 650-964-0811
Mountain View, CA  94043	PP-ASEL-IA