Plan item 1.2 in PROPOSAL_mdl_beta_syntax_freeze.md. Implements ADR-0011, decision 1.
Goal
One registry of deprecated MDL spellings, so every alias left over from consolidation (ADR-0010) warns consistently and can be rewritten mechanically.
Scope
- Generalise the existing MDL065 pattern. There, the AST records which spelling the source used (
mdl/ast/ast_microflow.go:273, validate_microflow.go:1457).
- A table of entries
{code MDL-DEPRnnn, old form, canonical form, rewrite, removed in (language version)}.
check and exec warn on a deprecated spelling. A --deprecations=error flag fails instead, for CI over docs and skills.
- A test fails when a grammar alternative marked as an alias has no registry entry.
- Seed entries:
create or replace (becomes create or modify) and show (becomes list/describe). These are the first two decided consolidations.
Blocks
Week 2 depends on this: fmt --upgrade and all the alias work in Phase 3.
Plan item 1.2 in PROPOSAL_mdl_beta_syntax_freeze.md. Implements ADR-0011, decision 1.
Goal
One registry of deprecated MDL spellings, so every alias left over from consolidation (ADR-0010) warns consistently and can be rewritten mechanically.
Scope
mdl/ast/ast_microflow.go:273,validate_microflow.go:1457).{code MDL-DEPRnnn, old form, canonical form, rewrite, removed in (language version)}.checkandexecwarn on a deprecated spelling. A--deprecations=errorflag fails instead, for CI over docs and skills.create or replace(becomescreate or modify) andshow(becomeslist/describe). These are the first two decided consolidations.Blocks
Week 2 depends on this:
fmt --upgradeand all the alias work in Phase 3.