Hi, Am 30.04.2009 um 17:39 schrieb samppi:
(defmacro complex [steps & product-expr] `(domonad ~parser-m ~steps ~product-expr))
Just leave out the ~ in front of parser-m. And I'm not sure how you want to handle product-expr. Maybe a @ is also missing here. (defmacro complex [steps & product-expr] `(domonad parser-m ~steps ~...@product-expr)) The difference is the following. Without @: => (macroexpand-1 '(complex [...] foo bar baz)) (domonad parser-m [...] (foo bar baz)) With @: => (macroexpand-1 '(complex [...] foo bar baz)) (domonad parser-m [...] foo bar baz)
It's giving me this kind of error: Exception in thread "main" java.lang.ExceptionInInitializerError (test_parse.clj:0)
Look at the stacktrace and scroll very far to the end. Normally there is a "Caused by" sentence, which probably is more informative. At least that is my experience. Hope this helps. Sincerely Meikel
smime.p7s
Description: S/MIME cryptographic signature