Value resolution: converts raw token text to Clojure values. All resolution is native — no delegation to read-string.
Value resolution: converts raw token text to Clojure values. All resolution is native — no delegation to read-string.
(resolve-auto-keyword raw loc resolve-fn)Resolve an auto-resolve keyword (::foo). If resolve-fn is provided, resolves at read time. Otherwise, defers to eval time via forms/deferred-auto-keyword.
Resolve an auto-resolve keyword (::foo). If resolve-fn is provided, resolves at read time. Otherwise, defers to eval time via forms/deferred-auto-keyword.
(resolve-char raw loc)Resolve a character literal token (e.g. \a, \newline, \u0041) to a char value.
Resolve a character literal token (e.g. \a, \newline, \u0041) to a char value.
(resolve-number raw loc)Resolve a number token to a numeric value. Handles integers, floats, hex (0x), octal (0), radix (NNr), ratios, BigInt (N), BigDecimal (M), and special values (##Inf, ##-Inf, ##NaN).
Resolve a number token to a numeric value. Handles integers, floats, hex (0x), octal (0), radix (NNr), ratios, BigInt (N), BigDecimal (M), and special values (##Inf, ##-Inf, ##NaN).
(resolve-regex raw loc)Resolve a regex literal token to a regex value.
Resolve a regex literal token to a regex value.
(resolve-string raw loc)Resolve a quoted string token to a string value. Handles escape sequences natively.
Resolve a quoted string token to a string value. Handles escape sequences natively.
(resolve-tagged-literal tag data loc)Resolve a tagged literal. JVM: produces TaggedLiteral. CLJS: error.
Resolve a tagged literal. JVM: produces TaggedLiteral. CLJS: error.
cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |