[gambit-list] Newbie Question: define-syntax and syntax-rules

Gabriel Kronberger gabriel.kronberger at gmail.com
Fri Jun 15 11:05:39 EDT 2007


This is probably a silly question but I'm having major troubles with
define-syntax or syntax-rules.

I used to work with the gambit debian packages version 4.0b20 however
it seems the necessary files (syntax-case.scm ...) are missing from
the package.
So I complied and installed 4.0b22. Now I can load the syntax-case.scm
file however it seems I can't get a simple syntax definition to work.
Even the simple example from the Gambit-C documentation doesn't work.

Gambit Version 4.0 beta 22

> (load "~~syntax-case")
>(define-syntax unless
(syntax-rules ()
((unless test body ...)
(if test #f (begin body ...)))))
*** ERROR IN (console at 3.15 -- Ill-formed expression

Unfortunately i couldn't find information on this problem in the
documentation or the archives so i'm kinda stuck now. Any help is


More information about the Gambit-list mailing list