Remove dead parse.token.* catalog entries
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.
This commit is contained in:
@@ -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"]),
|
||||
|
||||
@@ -408,25 +408,6 @@ parse:
|
||||
import: "import <zip-path> [as <target>]"
|
||||
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 `` `<word>` `` 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:
|
||||
|
||||
Reference in New Issue
Block a user