jolt/stdlib/clojure
Yogthos 44d4875a24 Strict reader tokens; edn mode with the reference's error contracts
The reader now rejects what the JVM reader rejects: a token that starts
like a number but doesn't parse is NumberFormatException (1a, 08, 0x2g,
2r2 — never a symbol); ratio parts are digit runs (1/-1 invalid) with a
zero denominator throwing ArithmeticException; empty ns/name parts are
invalid tokens (:, ::, foo/, /foo) while /, ns//, and :/ stay valid;
duplicate map keys and set elements throw at read; unsupported string
escapes and octal escapes past \377 throw; a stray close delimiter is
'Unmatched delimiter'; \r ends line comments. #inst validates its
calendar fields progressively (leap years included) and #uuid demands
canonical hex. 1-arg symbol splits its ns at the FIRST slash
(Symbol.intern): (symbol "foo/bar/baz") is foo/"bar/baz".

clojure.edn gets its own strict seam (__read-form-edn): auto-resolved
keywords are invalid there, every #_ discarded form validates through the
same :readers/:default pipeline (an unreadable tagged element throws even
when discarded), built-in tags win over :default, M literals construct
BigDecimals, lists satisfy list?, and EOF honors :eof — an opts map
without :eof makes end-of-input an error.

clojure.edn-test.read-string goes 246 pass / 46 fail / 5 errors -> 297/0/0
(fully clean). cts baseline 5904 -> 5955 pass, 23 errors, 56 baselined
namespaces. 9 JVM-certified corpus rows; reader spec section.
2026-07-02 12:00:13 -04:00
..
core core.async: higher-level API over native channels + two general fixes 2026-06-27 13:05:19 -04:00
sci Clean up codebase: rename stdlib layer, strip porting residue, fix tooling 2026-06-22 22:18:00 -04:00
data.clj Clean up codebase: rename stdlib layer, strip porting residue, fix tooling 2026-06-22 22:18:00 -04:00
edn.clj Strict reader tokens; edn mode with the reference's error contracts 2026-07-02 12:00:13 -04:00
pprint.clj Port real clojure.pprint (pretty-printer + cl-format) 2026-06-24 16:09:09 -04:00
set.clj deftype/record: clojure.lang collection interfaces + protocol identity 2026-06-25 00:14:19 -04:00
string.clj clojure.string toString coercion; some-fn/ifn? reference semantics; misc host gaps 2026-07-02 11:38:37 -04:00
template.clj Run core.memoize's test suite on jolt 2026-06-25 13:23:05 -04:00
test.clj clojure.test/are substitutes via clojure.template 2026-07-02 05:57:57 -04:00
walk.clj Fix six JVM divergences surfaced by rewrite-clj 2026-07-01 12:25:05 -04:00
zip.clj data.zip: add clojure.zip/xml-zip; clojure.xml lives in jolt-lang/xml 2026-06-27 14:49:49 -04:00