Commit dc6a893
AffineScript is strictly one-module-per-file (ADR-011 file=module;
grammar parser.mly:130-134 — `module A { }` parse-errors). #229 ports
carry ReScript block modules; single-per-file is mechanical (canonical
map), multi-block-per-file had no clean target (ESC-04 #262).
ADR-017 (accepted): one module per file — split, do not nest. Each
`module X { body }` -> its own X.affine with a `module X;` header; N
block-modules -> N files. Grammar NOT extended (ADR-011/ADR-012). No
compiler change — settles the porting doctrine + #229 canonical-map
structural rule. The split-file Resolve.UndefinedModule is cross-module
graph coherence (INT-02), tracked in RESCRIPT-ELIMINATION Tier-4, NOT
conflated here.
ADR-017 is sequential between ADR-016 (effect-threaded async-boundary,
#234/#270) and ADR-018 (no-raw-escape, #245/#272); inserted in order in
SETTLED-DECISIONS + META.a2ml + RESCRIPT-ELIMINATION ESC-04 row.
Reconstructed cleanly on current main (the original branch's ADR-016
->017 renumber history is collapsed to one in-order commit; supersedes
the prior #271 head). Docs-only; gate unaffected. Refs #262 #229.
Co-authored-by: hyperpolymath <hyperpolymath@users.noreply.github.com>
Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent a93efe8 commit dc6a893
3 files changed
Lines changed: 92 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1096 | 1096 | | |
1097 | 1097 | | |
1098 | 1098 | | |
| 1099 | + | |
| 1100 | + | |
| 1101 | + | |
| 1102 | + | |
| 1103 | + | |
| 1104 | + | |
| 1105 | + | |
| 1106 | + | |
| 1107 | + | |
| 1108 | + | |
| 1109 | + | |
| 1110 | + | |
| 1111 | + | |
| 1112 | + | |
| 1113 | + | |
| 1114 | + | |
| 1115 | + | |
| 1116 | + | |
| 1117 | + | |
| 1118 | + | |
| 1119 | + | |
| 1120 | + | |
| 1121 | + | |
| 1122 | + | |
| 1123 | + | |
| 1124 | + | |
| 1125 | + | |
| 1126 | + | |
| 1127 | + | |
| 1128 | + | |
| 1129 | + | |
| 1130 | + | |
| 1131 | + | |
| 1132 | + | |
| 1133 | + | |
| 1134 | + | |
| 1135 | + | |
| 1136 | + | |
| 1137 | + | |
| 1138 | + | |
| 1139 | + | |
| 1140 | + | |
| 1141 | + | |
| 1142 | + | |
| 1143 | + | |
| 1144 | + | |
| 1145 | + | |
| 1146 | + | |
| 1147 | + | |
| 1148 | + | |
| 1149 | + | |
1099 | 1150 | | |
1100 | 1151 | | |
1101 | 1152 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
273 | 273 | | |
274 | 274 | | |
275 | 275 | | |
276 | | - | |
277 | | - | |
278 | | - | |
| 276 | + | |
| 277 | + | |
| 278 | + | |
| 279 | + | |
| 280 | + | |
| 281 | + | |
| 282 | + | |
279 | 283 | | |
280 | 284 | | |
281 | 285 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
343 | 343 | | |
344 | 344 | | |
345 | 345 | | |
| 346 | + | |
| 347 | + | |
| 348 | + | |
| 349 | + | |
| 350 | + | |
| 351 | + | |
| 352 | + | |
| 353 | + | |
| 354 | + | |
| 355 | + | |
| 356 | + | |
| 357 | + | |
| 358 | + | |
| 359 | + | |
| 360 | + | |
| 361 | + | |
| 362 | + | |
| 363 | + | |
| 364 | + | |
| 365 | + | |
| 366 | + | |
| 367 | + | |
| 368 | + | |
| 369 | + | |
| 370 | + | |
| 371 | + | |
| 372 | + | |
| 373 | + | |
| 374 | + | |
| 375 | + | |
| 376 | + | |
| 377 | + | |
| 378 | + | |
| 379 | + | |
346 | 380 | | |
347 | 381 | | |
348 | 382 | | |
| |||
0 commit comments