Advertisement
Guest User

Untitled

a guest
Apr 11th, 2014
37
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.28 KB | None | 0 0
  1. (ns bar
  2. (:require [clojure.jvm.tools.analyzer :as jana]
  3. [clojure.tools.reader.edn :as edn]))
  4.  
  5. (def a (atom {}))
  6.  
  7. (defn foo [code]
  8. (binding [clojure.jvm.tools.analyzer/*eval-ast* false]
  9. (jana/analyze-form-in-ns
  10. 'bar
  11. (edn/read-string code))))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement