You seem to have a misplaced syntax-quote `
in the definition of your macro, since it is placed at the end of it in the code you posted, but there's no syntax-quoting in the forms where you use unquote ~
.
The following works just fine:
(defmacro streamops [data form]
(let [keewurd :...]
(cond
(not (seq? form)) form
(= (count form) 0) data
:else `(streamops ~(clojure.walk/prewalk-replace
{keewurd data} (first form))
~(rest form)))))
(= (macroexpand '(streamops 3 ( (+ 1 :...) (* :... 2))))
'(* (+ 1 3) 2))
;= true