Liking cljdoc? Tell your friends :D

lambdaisland.tools.namespace.parse

Parse Clojure namespace (ns) declarations and extract dependencies.

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

clj-read-optsclj/s

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-optsclj/s

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

name-from-ns-declclj/s

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

read-ns-declclj/s

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

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

× close