Map of options for tools.reader/read allowing reader conditionals with the :clj feature enabled.
Map of options for tools.reader/read allowing reader conditionals with the :clj feature enabled.
Map of options for tools.reader/read allowing reader conditionals with the :cljs feature enabled.
Map of options for tools.reader/read allowing reader conditionals with the :cljs feature enabled.
(comment? form)
Returns true if form is a (comment ...)
Returns true if form is a (comment ...)
(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.
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.
(name-from-ns-decl decl)
Given an (ns...) declaration form (unevaluated), returns the name of the namespace as a symbol.
Given an (ns...) declaration form (unevaluated), returns the name of the namespace as a symbol.
(ns-decl? form)
Returns true if form is a (ns ...) declaration.
Returns true if form is a (ns ...) declaration.
(read-ns-decl rdr)
(read-ns-decl rdr read-opts)
Attempts to read a (ns ...) declaration from a reader, and returns the unevaluated form. Returns the first top-level ns form found. Returns nil if ns declaration cannot be found. Throws exception on invalid syntax.
Note that read can execute code (controlled by tools.reader/read-eval), and as such should be used only with trusted sources. read-opts is passed through to tools.reader/read, defaults to clj-read-opts
Attempts to read a (ns ...) declaration from a reader, and returns the unevaluated form. Returns the first top-level ns form found. Returns nil if ns declaration cannot be found. Throws exception on invalid syntax. Note that read can execute code (controlled by tools.reader/*read-eval*), and as such should be used only with trusted sources. read-opts is passed through to tools.reader/read, defaults to clj-read-opts
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close