Liking cljdoc? Tell your friends :D

clojure.tools.namespace.parse

Parse Clojure namespace (ns) declarations and extract dependencies.

Parse Clojure namespace (ns) declarations and extract
dependencies.
raw docstring

clj-read-optscljs

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.
sourceraw docstring

cljs-read-optscljs

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.
sourceraw docstring

comment?clj/s

(comment? form)

Returns true if form is a (comment ...)

Returns true if form is a (comment ...)
source (clj)source (cljs)raw docstring

deps-from-ns-declclj/s

(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.
source (clj)source (cljs)raw docstring

name-from-ns-declcljs

(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.
sourceraw docstring

ns-decl?clj/s

(ns-decl? form)

Returns true if form is a (ns ...) declaration.

Returns true if form is a (ns ...) declaration.
source (clj)source (cljs)raw docstring

read-ns-declclj/s≠

clj
(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.

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.
cljs
(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
source (clj)source (cljs)raw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close