clojure.tools.namespace.parse
Parse Clojure namespace (ns) declarations and extract
dependencies.
(deps-from-ns-decl decl)
Given an (ns...) declaration form (unevaluated), returns a set of
symbols naming the dependencies of that namespace. Handles :use and
:require clauses but not :load.
(read-ns-decl rdr)
Attempts to read a (ns ...) declaration from a
java.io.PushbackReader, and returns the unevaluated form. Returns
the first top-level ns form found. Returns nil if read fails or if a
ns declaration cannot be found. Note that read can execute code
(controlled by *read-eval*), and as such should be used only with
trusted sources.