From 50b78253d89c2ed488414bad587a419ec7715c46 Mon Sep 17 00:00:00 2001 From: "claude@clouddev1" Date: Fri, 15 May 2026 21:29:36 +0000 Subject: [PATCH] Remove dead parse.token.* catalog entries MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The 5 structural-class entries (identifier/number/string_literal/flag/ end_of_input) and 3 lex-error entries (bad_flag/unknown_char/ unterminated_string) were unreachable: ADR-0024 Phase F made the walker render keyword wording verbatim and the lex errors never surface through today's walker. Handoff-12 §2.1 kept them as a conservative call; removed now per user request. Re-adding is cheap if a future need arises. --- src/friendly/keys.rs | 16 ---------------- src/friendly/strings/en-US.yaml | 19 ------------------- 2 files changed, 35 deletions(-) diff --git a/src/friendly/keys.rs b/src/friendly/keys.rs index aa7b460..277b6e6 100644 --- a/src/friendly/keys.rs +++ b/src/friendly/keys.rs @@ -196,22 +196,6 @@ pub const KEYS_AND_PLACEHOLDERS: &[(&str, &[&str])] = &[ ("parse.usage.show_data", &[]), ("parse.usage.show_table", &[]), ("parse.usage.update", &[]), - // Single-token vocabulary (ADR-0021 §4). Phase F of - // ADR-0024 collapsed the per-keyword and per-punct catalog - // entries — the walker renders keyword wording verbatim via - // `format!("`{word}`")` rather than going through the catalog. - // What remains are the structural-class labels (identifier, - // number, string literal, flag, end of input) and the - // lex-error wordings, none of which are derivable from the - // grammar tree. - ("parse.token.end_of_input", &[]), - ("parse.token.error.bad_flag", &[]), - ("parse.token.error.unknown_char", &["found"]), - ("parse.token.error.unterminated_string", &[]), - ("parse.token.flag", &[]), - ("parse.token.identifier", &[]), - ("parse.token.number", &[]), - ("parse.token.string_literal", &[]), // ---- Project lifecycle event notes ---- ("project.export_failed", &["error"]), ("project.export_ok", &["path"]), diff --git a/src/friendly/strings/en-US.yaml b/src/friendly/strings/en-US.yaml index 1a5223e..6263223 100644 --- a/src/friendly/strings/en-US.yaml +++ b/src/friendly/strings/en-US.yaml @@ -408,25 +408,6 @@ parse: import: "import [as ]" mode: "mode simple | mode advanced" messages: "messages | messages short | messages verbose" - # Single-token vocabulary (ADR-0021 §4, ADR-0024 §cleanup-pass). - # The per-keyword and per-punct entries collapsed when the - # walker became the source of truth — keyword wording is now - # produced verbatim as `` `` `` by the parse-error - # formatter, sourced from the grammar tree's Word literals. - # What remains here is structural-class labels (identifier / - # number / string literal / flag / end of input) and the - # lex-error wordings, none of which are derivable from the - # grammar. - token: - identifier: "identifier" - number: "number" - string_literal: "string literal" - flag: "flag (--name)" - end_of_input: "end of input" - error: - unterminated_string: "unterminated string literal" - unknown_char: "unrecognised character `{found}`" - bad_flag: "malformed flag (bare `--`)" # ---- Project lifecycle event notes ----------------------------------- project: