Liking cljdoc? Tell your friends :D

cljs.reader


*default-data-reader-fn*cljs

source

*tag-table*cljs

source

add-data-readerscljsmacro

(add-data-readers default-readers)
source

deregister-default-tag-parser!cljs

(deregister-default-tag-parser!)
source

deregister-tag-parser!cljs

(deregister-tag-parser! tag)
source

parse-and-validate-timestampcljs

(parse-and-validate-timestamp s)
source

parse-timestampcljs

(parse-timestamp ts)
source

readcljs

(read reader)
(read {:keys [eof] :as opts} reader)
(read reader eof-error? eof opts)

Reads the first object from an cljs.tools.reader.reader-types/IPushbackReader. Returns the object read. If EOF, throws if eof-error? is true otherwise returns eof. If no reader is provided, in will be used.

Reads data in the edn format (subset of Clojure data): http://edn-format.org

cljs.tools.reader.edn/read doesn't depend on dynamic Vars, all configuration is done by passing an opt map.

opts is a map that can include the following keys: :eof - value to return on end-of-file. When not supplied, eof throws an exception. :readers - a map of tag symbols to data-reader functions to be considered before default-data-readers. When not supplied, only the default-data-readers will be used. :default - A function of two args, that will, if present and no reader is found for a tag, be called with the tag and the value.

Reads the first object from an cljs.tools.reader.reader-types/IPushbackReader.
Returns the object read. If EOF, throws if eof-error? is true otherwise returns eof.
If no reader is provided, *in* will be used.

Reads data in the edn format (subset of Clojure data):
http://edn-format.org

cljs.tools.reader.edn/read doesn't depend on dynamic Vars, all configuration
is done by passing an opt map.

opts is a map that can include the following keys:
:eof - value to return on end-of-file. When not supplied, eof throws an exception.
:readers  - a map of tag symbols to data-reader functions to be considered before default-data-readers.
           When not supplied, only the default-data-readers will be used.
:default - A function of two args, that will, if present and no reader is found for a tag,
           be called with the tag and the value.
sourceraw docstring

read-stringcljs

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

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

Reads data in the edn format (subset of Clojure data): http://edn-format.org

opts is a map as per cljs.tools.reader.edn/read

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

Reads data in the edn format (subset of Clojure data):
http://edn-format.org

opts is a map as per cljs.tools.reader.edn/read
sourceraw docstring

register-default-tag-parser!cljs

(register-default-tag-parser! f)
source

register-tag-parser!cljs

(register-tag-parser! tag f)
source

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

× close