after reading the doc on define-macro and define-syntax, i realized that i need to load the syntax-case first, and when i did that and execute the define-syntax again it works now!
i didn't know that there's a gambit expansion define-macro (thanks adrien for pointing this out :-)
why using define-macro instead of define-syntax since define-syntax is define in the standard (hence more portable) even though some implementations also have define-macro? is there any advantage of using define-macro? less code? common-lisp-like?
thanks,
antonitio
On Tue, Aug 25, 2009 at 1:54 PM, Adrien Piérard pierarda@iro.umontreal.cawrote:
Gambit-C 4.5.1 here, I can't seem to make any syntax-rule work either. MD5 (/usr/local/lib/gambit-c/syntax-case.scm) = e53a1b858553730c86c34d7923aadb59
Either a bad syntax-case.scm was provided in the archive, either it is now incompatible and nobody realized it before you. Either I forgot how to write a trivial define-syntax. Since most users of gambit seem to prefer define-macro, you may have discovered the bug first.
P!
2009/8/25 antonitio antonitio@gmail.com:
but getting the following error with the bracket pair after syntax-rules highlighted (in emacs): *** ERROR IN (stdin)@2.17 -- Ill-formed expression this occurs on both version 4.4.4 and 4.5.1. am i missing something? or?
-- Français, English, 日本語, 한국어