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