|
| 1 | +.. Generated by internal/src/main.ml. Do not edit directly. |
| 2 | + Run 'make' in internal/ to regenerate. |
| 3 | +
|
| 4 | +Feature Support Matrix |
| 5 | +====================== |
| 6 | + |
| 7 | +For each ATD feature, target languages are grouped by support level. |
| 8 | + |
| 9 | +Basic types |
| 10 | +~~~~~~~~~~~ |
| 11 | + |
| 12 | +unit, bool, int, float, string |
| 13 | + |
| 14 | +**Supported:** atdml (OCaml), atdgen (OCaml), atdpy (Python), atdts (TypeScript), atdj (Java), atds (Scala), atdd (Dart), atdcpp (C++) |
| 15 | + |
| 16 | +Abstract type |
| 17 | +~~~~~~~~~~~~~ |
| 18 | + |
| 19 | +Any JSON value (abstract keyword) |
| 20 | + |
| 21 | +**Supported:** atdml (OCaml), atdgen (OCaml), atdpy (Python), atdts (TypeScript), atdj (Java), atds (Scala), atdd (Dart), atdcpp (C++) |
| 22 | + |
| 23 | +List / array |
| 24 | +~~~~~~~~~~~~ |
| 25 | + |
| 26 | +The list type constructor |
| 27 | + |
| 28 | +**Supported:** atdml (OCaml), atdgen (OCaml), atdpy (Python), atdts (TypeScript), atdj (Java), atds (Scala), atdd (Dart), atdcpp (C++) |
| 29 | + |
| 30 | +Option type |
| 31 | +~~~~~~~~~~~ |
| 32 | + |
| 33 | +ATD-style "None" / ["Some", x] encoding |
| 34 | + |
| 35 | +**Supported:** atdml (OCaml), atdgen (OCaml), atdpy (Python), atdts (TypeScript), atdj (Java), atds (Scala), atdd (Dart), atdcpp (C++) |
| 36 | + |
| 37 | +Nullable |
| 38 | +~~~~~~~~ |
| 39 | + |
| 40 | +JSON null <-> None, other value <-> Some x |
| 41 | + |
| 42 | +**Supported:** atdml (OCaml), atdgen (OCaml), atdpy (Python), atdts (TypeScript), atdj (Java), atds (Scala), atdd (Dart), atdcpp (C++) |
| 43 | + |
| 44 | +Wrap type |
| 45 | +~~~~~~~~~ |
| 46 | + |
| 47 | +Custom type wrappers ('a wrap) |
| 48 | + |
| 49 | +**Supported:** atdml (OCaml), atdgen (OCaml), atdts (TypeScript), atdd (Dart), atdcpp (C++) |
| 50 | + |
| 51 | +**Not yet:** atdpy (Python), atdj (Java), atds (Scala) |
| 52 | + |
| 53 | +Records |
| 54 | +~~~~~~~ |
| 55 | + |
| 56 | +Record types with named fields |
| 57 | + |
| 58 | +**Supported:** atdml (OCaml), atdgen (OCaml), atdpy (Python), atdts (TypeScript), atdj (Java), atds (Scala), atdd (Dart), atdcpp (C++) |
| 59 | + |
| 60 | +Sum types |
| 61 | +~~~~~~~~~ |
| 62 | + |
| 63 | +Tagged unions / variants |
| 64 | + |
| 65 | +**Supported:** atdml (OCaml), atdgen (OCaml), atdpy (Python), atdts (TypeScript), atdj (Java), atds (Scala), atdd (Dart), atdcpp (C++) |
| 66 | + |
| 67 | +Tuples |
| 68 | +~~~~~~ |
| 69 | + |
| 70 | +Fixed-arity product types |
| 71 | + |
| 72 | +**Supported:** atdml (OCaml), atdgen (OCaml), atdpy (Python), atdts (TypeScript), atdj (Java), atds (Scala), atdd (Dart), atdcpp (C++) |
| 73 | + |
| 74 | +Parametric types |
| 75 | +~~~~~~~~~~~~~~~~ |
| 76 | + |
| 77 | +Generic / parameterized type definitions |
| 78 | + |
| 79 | +**Supported:** atdml (OCaml), atdgen (OCaml), atdpy (Python), atdts (TypeScript), atdj (Java), atds (Scala), atdd (Dart), atdcpp (C++) |
| 80 | + |
| 81 | +Type aliases |
| 82 | +~~~~~~~~~~~~ |
| 83 | + |
| 84 | +Simple aliases (type t = int list) |
| 85 | + |
| 86 | +**Supported:** atdml (OCaml), atdgen (OCaml), atdpy (Python), atdts (TypeScript), atdj (Java), atds (Scala), atdd (Dart), atdcpp (C++) |
| 87 | + |
| 88 | +Optional fields |
| 89 | +~~~~~~~~~~~~~~~ |
| 90 | + |
| 91 | +?field — absent JSON key <-> None |
| 92 | + |
| 93 | +**Supported:** atdml (OCaml), atdgen (OCaml), atdpy (Python), atdts (TypeScript), atdj (Java), atds (Scala), atdd (Dart), atdcpp (C++) |
| 94 | + |
| 95 | +Default-value fields |
| 96 | +~~~~~~~~~~~~~~~~~~~~ |
| 97 | + |
| 98 | +~field — absent JSON key uses a default |
| 99 | + |
| 100 | +**Supported:** atdml (OCaml), atdgen (OCaml), atdpy (Python), atdts (TypeScript), atdj (Java), atds (Scala), atdd (Dart), atdcpp (C++) |
| 101 | + |
| 102 | +Doc comments |
| 103 | +~~~~~~~~~~~~ |
| 104 | + |
| 105 | +<doc text="..."> -> language docstrings |
| 106 | + |
| 107 | +**Supported:** atdml (OCaml), atdgen (OCaml), atdpy (Python), atdts (TypeScript), atdj (Java), atds (Scala) |
| 108 | + |
| 109 | +**Not yet:** atdd (Dart), atdcpp (C++) |
| 110 | + |
| 111 | +JSON field names |
| 112 | +~~~~~~~~~~~~~~~~ |
| 113 | + |
| 114 | +<json name="..."> on record fields |
| 115 | + |
| 116 | +**Supported:** atdml (OCaml), atdgen (OCaml), atdpy (Python), atdts (TypeScript), atdj (Java), atds (Scala), atdd (Dart), atdcpp (C++) |
| 117 | + |
| 118 | +JSON variant names |
| 119 | +~~~~~~~~~~~~~~~~~~ |
| 120 | + |
| 121 | +<json name="..."> on sum type constructors |
| 122 | + |
| 123 | +**Supported:** atdml (OCaml), atdgen (OCaml), atdpy (Python), atdts (TypeScript), atdj (Java), atds (Scala), atdd (Dart), atdcpp (C++) |
| 124 | + |
| 125 | +Assoc as JSON object |
| 126 | +~~~~~~~~~~~~~~~~~~~~ |
| 127 | + |
| 128 | +(string * v) list <json repr="object"> |
| 129 | + |
| 130 | +**Supported:** atdml (OCaml), atdgen (OCaml), atdpy (Python), atdts (TypeScript) |
| 131 | + |
| 132 | +**Not yet:** atdj (Java), atds (Scala), atdd (Dart), atdcpp (C++) |
| 133 | + |
| 134 | +JSON adapter |
| 135 | +~~~~~~~~~~~~ |
| 136 | + |
| 137 | +Custom pre/post-processing hooks |
| 138 | + |
| 139 | +**Supported:** atdml (OCaml), atdgen (OCaml) |
| 140 | + |
| 141 | +**Not yet:** atdpy (Python), atdts (TypeScript), atdj (Java), atds (Scala), atdd (Dart), atdcpp (C++) |
| 142 | + |
| 143 | +Cross-file imports |
| 144 | +~~~~~~~~~~~~~~~~~~ |
| 145 | + |
| 146 | +from module import type1, type2 |
| 147 | + |
| 148 | +**Supported:** atdml (OCaml), atdpy (Python), atdts (TypeScript) |
| 149 | + |
| 150 | +**Not yet:** atdj (Java), atds (Scala), atdd (Dart), atdcpp (C++) |
| 151 | + |
| 152 | +**Not supported:** atdgen (OCaml) |
| 153 | + |
| 154 | +Shared/cyclic types |
| 155 | +~~~~~~~~~~~~~~~~~~~ |
| 156 | + |
| 157 | +The shared type constructor for graphs |
| 158 | + |
| 159 | +**Supported:** atdgen (OCaml) |
| 160 | + |
| 161 | +**Not yet:** atdj (Java), atds (Scala), atdd (Dart), atdcpp (C++) |
| 162 | + |
| 163 | +**Not supported:** atdml (OCaml), atdpy (Python), atdts (TypeScript) |
| 164 | + |
| 165 | +Open enumerations |
| 166 | +~~~~~~~~~~~~~~~~~ |
| 167 | + |
| 168 | +Unknown variants round-tripped as-is |
| 169 | + |
| 170 | +**Supported:** atdgen (OCaml) |
| 171 | + |
| 172 | +**Not yet:** atdpy (Python), atdts (TypeScript), atdj (Java), atds (Scala), atdd (Dart), atdcpp (C++) |
| 173 | + |
| 174 | +**Not supported:** atdml (OCaml) |
| 175 | + |
0 commit comments