Hello everyone,
I'm trying to write the following macro using the syntax-rules system, and
got stuck trying to figure out the ellipsis. Would someone mind giving me a
hand with this? I really appreciate it.
I'm trying to write a macro that will tranform:
(temp (a b c) do-this do-that do-other)
into this:
(do (do-this a b c)
(do-that a b c)
(do-other a b c))
And here's my attempt at it:
(define-syntax temp
(syntax-rules ()
((temp args fs ...) (do (fs args ...) ...))))
Obviously it doesn't work, as the ellipsis are not balanced on both sides. I
think I might need some sort of helper macro, but don't know what.
Thanks for your help!
-Patrick
_______________________________________________
Chicken-users mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/chicken-users