Repository navigation
CHANGES:
-
atdj: Top-level list aliases such as
type items = item listare now
supported. A wrapper class (e.g.Items) implementingAtdjis generated
with the same interface as record classes: a no-arg constructor, a
constructor fromArrayList<T>, a constructor from a JSON string, a
package-private constructor fromJSONArray,toJsonBuffer,toJson,
and a publicvaluefield of typeArrayList<T>. List aliases used as
record fields or sum-variant payloads are also handled correctly. -
atdml: Generate
jsonlike_of_fooserializer functions andFoo.to_jsonlike
submodule bindings, completing the OCaml ↔Atd_jsonlike.AST.tround-trip.
JSON adapters are also supported: if the adapter moduleMprovides
restore_jsonlike, it is called after serialization byjsonlike_of_foo. -
atd-jsonlike: Add
Pos.zeroandLoc.zero— zero-position / zero-location
constants useful for constructingAST.tnodes programmatically when source
location information is not available. -
atd-yamlx: Add
to_yamlx_value : Atd_jsonlike.AST.t -> YAMLx.value, the
reverse ofof_yamlx_value. Enables programmatic construction of YAML
documents from ATD-typed OCaml values viajsonlike_of_foo.