Liking cljdoc? Tell your friends :D

cljs.tools.reader

A clojure reader in clojure

A clojure reader in clojure
raw docstring

*alias-map*cljs

Map from ns alias to ns, if non-nil, it will be used to resolve read-time ns aliases.

Defaults to nil

Map from ns alias to ns, if non-nil, it will be used to resolve read-time
ns aliases.

Defaults to nil
raw docstring

*data-readers*cljs

Map from reader tag symbols to data reader Vars. Reader tags without namespace qualifiers are reserved for Clojure. This light version of tools.reader has no implementation for default reader tags such as #inst and #uuid.

Map from reader tag symbols to data reader Vars.
Reader tags without namespace qualifiers are reserved for Clojure.
This light version of tools.reader has no implementation for default
reader tags such as #inst and #uuid.
raw docstring

*default-data-reader-fn*cljs

When no data reader is found for a tag and default-data-reader-fn is non-nil, it will be called with two arguments, the tag and the value. If default-data-reader-fn is nil (the default value), an exception will be thrown for the unknown tag.

When no data reader is found for a tag and *default-data-reader-fn*
is non-nil, it will be called with two arguments, the tag and the value.
If *default-data-reader-fn* is nil (the default value), an exception
will be thrown for the unknown tag.
raw docstring

*read-delim*cljs


*suppress-read*cljs


bool?cljs

(bool? x)

default-data-readerscljs

Default map of data reader functions provided by Clojure. May be overridden by binding data-readers

Default map of data reader functions provided by Clojure.
May be overridden by binding *data-readers*
raw docstring

map-funccljs

(map-func coll)

Decide which map type to use, array-map if less than 16 elements

Decide which map type to use, array-map if less than 16 elements
raw docstring

readcljs

(read reader)
(read {eof :eof :as opts :or {eof :eofthrow}} reader)
(read reader eof-error? sentinel)

Reads the first object from an IPushbackReader. Returns the object read. If EOF, throws if eof-error? is true. Otherwise returns sentinel. If no stream is provided, in will be used.

Opts is a persistent map with valid keys: :read-cond - :allow to process reader conditionals, or :preserve to keep all branches :features - persistent set of feature keywords for reader conditionals :eof - on eof, return value unless :eofthrow, then throw. if not specified, will throw

To read data structures only, use cljs.tools.reader.edn/read

Note that the function signature of cljs.tools.reader/read and cljs.tools.reader.edn/read is not the same for eof-handling

Reads the first object from an IPushbackReader.
Returns the object read. If EOF, throws if eof-error? is true.
Otherwise returns sentinel. If no stream is provided, *in* will be used.

Opts is a persistent map with valid keys:
 :read-cond - :allow to process reader conditionals, or
              :preserve to keep all branches
 :features - persistent set of feature keywords for reader conditionals
 :eof - on eof, return value unless :eofthrow, then throw.
        if not specified, will throw

To read data structures only, use cljs.tools.reader.edn/read

Note that the function signature of cljs.tools.reader/read and
cljs.tools.reader.edn/read is not the same for eof-handling
raw docstring

read+stringcljs

(read+string stream)
(read+string opts stream)
(read+string stream eof-error? eof-value)

Like read, and taking the same args. reader must be a SourceLoggingPushbackReader. Returns a vector containing the object read and the (whitespace-trimmed) string read.

Like read, and taking the same args. reader must be a SourceLoggingPushbackReader.
Returns a vector containing the object read and the (whitespace-trimmed) string read.
raw docstring

read-regexcljs

(read-regex rdr ch opts pending-forms)

read-stringcljs

(read-string s)
(read-string opts s)

Reads one object from the string s. Returns nil when s is nil or empty.

To read data structures only, use cljs.tools.reader.edn/read-string

Note that the function signature of cljs.tools.reader/read-string and cljs.tools.reader.edn/read-string is not the same for eof-handling

Reads one object from the string s.
Returns nil when s is nil or empty.

To read data structures only, use cljs.tools.reader.edn/read-string

Note that the function signature of cljs.tools.reader/read-string and
cljs.tools.reader.edn/read-string is not the same for eof-handling
raw docstring

resolve-symbolcljs

(resolve-symbol s)

Resolve a symbol s into its fully qualified namespace version

Resolve a symbol s into its fully qualified namespace version
raw docstring

sbcljs

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

× close