Organisationsahrefsatdbranch/martin/json-astBuild History

Build History for branch/martin/json-ast

Builds (7)
atdml: support normalize_jsonlike in module-based JSON adapters When <json adapter.ocaml="M"> is used, of_jsonlike now calls M.normalize_jsonlike before deserialization, mirroring the M.normalize call in of_yojson. The function name is intentionally different to avoid conflicts with the Yojson adapter interface. Only module-based adapters are supported for jsonlike; inline adapters (adapter.to_ocaml / adapter.from_ocaml) are not supported and continue to be silently skipped for the jsonlike path. Implementation: the mode record's supports_json_adapters:bool field is replaced with normalize_of_adapter:(json_adapter -> string option), so each mode knows how to derive its normalize expression from an adapter. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
203aee
Fix examples
b749bb
atd-jsonlike: use Testo.check instead of custom check_eq helper Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
4daecb
CHANGES: document atd-jsonlike and atdml jsonlike features Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
8560a7
atdml: Remove unnecessary trailing underscores from jsonlike helper names Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
7f7568
atdml: Add jsonlike round-trip tests piggybacking on existing test_e2e tests Each test_e2e test now also silently verifies that: yojson_in -> of_jsonlike -> yojson_of -> yojson_out2 == yojson_out A yojson_to_jsonlike_ helper (with dummy locations) is injected into the generated Main.ml. Tests for abstract types and JSON adapters opt out via ~test_jsonlike:false since those features are intentionally not supported by the jsonlike path. Also fixes Yojson.Safe.t compatibility: v3.0.0 removed `Floatlit, `Tuple, and `Variant constructors, so the match is now exhaustive with 8 cases. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
aa80e7
atd-jsonlike: add README, unit tests, and Makefile - README.md documents the AST type, Number.t field semantics (with a table), and Loc/Pos conventions - tests/test.ml covers Number.of_int, Number.of_float, Number.of_string_opt (valid and invalid inputs), and AST.loc_msg - Makefile and test script follow the same pattern as atdml/atdcat - dune-project: add re and testo :with-test deps for atd-jsonlike; remove mistakenly added re dep from atdgen-codec-runtime - root Makefile: run atd-jsonlike tests as part of test-common Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
325b67